blob: 4540461be1d8bd685262cce35c0fef43926d37f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require 'test/unit'
class TestRedefinition < Test::Unit::TestCase
def test_redefinition
assert_match /^test\/unit warning: method TestForTestRedefinition#test_redefinition is redefined$/,
redefinition
end
def redefinition(*args)
IO.popen([*@options[:ruby], "#{File.dirname(__FILE__)}/test4test_redefinition.rb", *args],
err: [:child, :out]) {|f|
f.read
}
end
end
|