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