diff options
Diffstat (limited to 'spec/ruby/core/thread/exclusive_spec.rb')
-rw-r--r-- | spec/ruby/core/thread/exclusive_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/ruby/core/thread/exclusive_spec.rb b/spec/ruby/core/thread/exclusive_spec.rb index a96ebe749d..ec35ba542b 100644 --- a/spec/ruby/core/thread/exclusive_spec.rb +++ b/spec/ruby/core/thread/exclusive_spec.rb @@ -1,8 +1,15 @@ require_relative '../../spec_helper' describe "Thread.exclusive" do + verbose = Object + before :each do ScratchPad.clear + verbose, $VERBOSE = $VERBOSE, nil + end + + after :each do + $VERBOSE = verbose end it "yields to the block" do |