summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-27 12:00:10 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-07-27 12:00:10 +0000
commit21d35a4d44c8a31f0a4e26506df94d69aed4960d (patch)
tree5990bce3aae0bf296857093b3025011aae8b7fd1 /test/lib
parentbd8bb810c792b7e7e51a988a52775e652931d494 (diff)
test/unit.rb: suppress warnings
* test/lib/test/unit.rb (MiniTest::Unit::TestCase.test_order): get rid of warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/lib')
-rw-r--r--test/lib/test/unit.rb7
1 files changed, 4 insertions, 3 deletions
diff --git a/test/lib/test/unit.rb b/test/lib/test/unit.rb
index cbf6d34..a3333cc 100644
--- a/test/lib/test/unit.rb
+++ b/test/lib/test/unit.rb
@@ -986,11 +986,12 @@ end
class MiniTest::Unit::TestCase # :nodoc: all
test_order = self.test_order
- def self.test_order
- @test_order || superclass.test_order
- end
class << self
attr_writer :test_order
+ undef test_order
+ end
+ def self.test_order
+ defined?(@test_order) ? @test_order : superclass.test_order
end
self.test_order = test_order
undef run_test