diff options
Diffstat (limited to 'lib/minitest')
-rw-r--r-- | lib/minitest/spec.rb | 3 | ||||
-rw-r--r-- | lib/minitest/unit.rb | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/minitest/spec.rb b/lib/minitest/spec.rb index c8584f6e4a..d91fccf5bc 100644 --- a/lib/minitest/spec.rb +++ b/lib/minitest/spec.rb @@ -142,9 +142,8 @@ class MiniTest::Spec < MiniTest::Unit::TestCase }.last end - @@describe_stack = [] def describe_stack # :nodoc: - @@describe_stack + Thread.current[:describe_stack] ||= [] end ## diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb index a29c8ec93b..465e5b4c98 100644 --- a/lib/minitest/unit.rb +++ b/lib/minitest/unit.rb @@ -738,7 +738,7 @@ module MiniTest end class Unit # :nodoc: - VERSION = "4.7.4" # :nodoc: + VERSION = "4.7.5" # :nodoc: attr_accessor :report, :failures, :errors, :skips # :nodoc: attr_accessor :assertion_count # :nodoc: |