aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/ruby/core/thread/exclusive_spec.rb7
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