summaryrefslogtreecommitdiff
path: root/test/lib
diff options
context:
space:
mode:
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