diff options
Diffstat (limited to 'lib/minitest/spec.rb')
-rw-r--r-- | lib/minitest/spec.rb | 3 |
1 files changed, 1 insertions, 2 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 ## |