summaryrefslogtreecommitdiff
path: root/test/testunit/test4test_redefinition.rb
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-21 05:12:32 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-21 05:12:32 +0000
commit7773a911f5bd0b171ae0bc6c62dbf6ca58360776 (patch)
tree6b7a7fa806674cb2b0a35ba5be163e7ee8a90e32 /test/testunit/test4test_redefinition.rb
parentc4827de949c6c1a940e1d3e48421397d01b0da8a (diff)
* lib/test/unit.rb: warn when test_* method is redefined.
Patch by mame (Yusuke Endoh). [Feature #2643] [ruby-core:27790] * test/testunit/test_redefinition.rb: Test for above. * test/testunit/test4test_redefinition.rb: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36484 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit/test4test_redefinition.rb')
-rw-r--r--test/testunit/test4test_redefinition.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/testunit/test4test_redefinition.rb b/test/testunit/test4test_redefinition.rb
new file mode 100644
index 00000000000..72c4cb225a3
--- /dev/null
+++ b/test/testunit/test4test_redefinition.rb
@@ -0,0 +1,11 @@
+require 'test/unit'
+
+class TestForTestRedefinition < Test::Unit::TestCase
+ def test_redefinition
+ skip "do nothing (1)"
+ end
+
+ def test_redefinition
+ skip "do nothing (2)"
+ end
+end