mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
d77b17aa73
* test/ruby/test_system.rb: use envutil.rb * test/ruby/test_beginendblock.rb: added. * test/ruby/beginmainend.rb: added. used in test_beginendblock.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
12 lines
350 B
Ruby
12 lines
350 B
Ruby
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
|