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