diff options
Diffstat (limited to 'spec/ruby/library/stringscanner/restsize_spec.rb')
-rw-r--r-- | spec/ruby/library/stringscanner/restsize_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ruby/library/stringscanner/restsize_spec.rb b/spec/ruby/library/stringscanner/restsize_spec.rb index 87edf35ad6..cf3e22f34c 100644 --- a/spec/ruby/library/stringscanner/restsize_spec.rb +++ b/spec/ruby/library/stringscanner/restsize_spec.rb @@ -8,13 +8,11 @@ describe "StringScanner#restsize" do it "warns in verbose mode that the method is obsolete" do s = StringScanner.new("abc") lambda { - $VERBOSE = true s.restsize - }.should complain(/restsize.*obsolete.*rest_size/) + }.should complain(/restsize.*obsolete.*rest_size/, verbose: true) lambda { - $VERBOSE = false s.restsize - }.should_not complain + }.should_not complain(verbose: false) end end |