diff options
Diffstat (limited to 'test/ruby/test_beginendblock.rb')
-rw-r--r-- | test/ruby/test_beginendblock.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/ruby/test_beginendblock.rb b/test/ruby/test_beginendblock.rb new file mode 100644 index 0000000000..301d2c62f5 --- /dev/null +++ b/test/ruby/test_beginendblock.rb @@ -0,0 +1,12 @@ +require 'test/unit' +require "#{File.dirname(File.expand_path(__FILE__))}/envutil" + +class TestBeginEndBlock < Test::Unit::TestCase + DIR = File.dirname(File.expand_path(__FILE__)) + + def test_beginendblock + ruby = EnvUtil.rubybin + io = IO.popen("\"#{ruby}\" \"#{DIR}/beginmainend.rb\"") + assert_equal("begin\nmain\nend\n", io.read) + end +end |