summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/clear_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/clear_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/clear_spec.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ruby/library/stringscanner/clear_spec.rb b/spec/ruby/library/stringscanner/clear_spec.rb
index 70c60f7039..c8b19abe7d 100644
--- a/spec/ruby/library/stringscanner/clear_spec.rb
+++ b/spec/ruby/library/stringscanner/clear_spec.rb
@@ -8,13 +8,11 @@ describe "StringScanner#clear" do
it "warns in verbose mode that the method is obsolete" do
s = StringScanner.new("abc")
lambda {
- $VERBOSE = true
s.clear
- }.should complain(/clear.*obsolete.*terminate/)
+ }.should complain(/clear.*obsolete.*terminate/, verbose: true)
lambda {
- $VERBOSE = false
s.clear
- }.should_not complain
+ }.should_not complain(verbose: false)
end
end