1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/testunit/test_redefinition.rb
usa 970c5ac4ff * test/testunit/test_redefinition.rb: broken class/method names.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36531 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-07-25 01:01:59 +00:00

13 lines
402 B
Ruby

require 'test/unit'
class TestRedefinition < Test::Unit::TestCase
def test_redefinition
test_out, o = IO.pipe
spawn(*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_redefinition.rb", out: File::NULL, err: o)
o.close
assert_match /^test\/unit warning: method TestForTestRedefinition#test_redefinition is redefined$/,
test_out.read
test_out.close
end
end