blob: 677027a331f13431df5be40f4d6bb2ff5f7babd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|