summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/restsize_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/restsize_spec.rb')
-rw-r--r--spec/ruby/library/stringscanner/restsize_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringscanner/restsize_spec.rb b/spec/ruby/library/stringscanner/restsize_spec.rb
index cf3e22f34c..710520afae 100644
--- a/spec/ruby/library/stringscanner/restsize_spec.rb
+++ b/spec/ruby/library/stringscanner/restsize_spec.rb
@@ -7,11 +7,11 @@ describe "StringScanner#restsize" do
it "warns in verbose mode that the method is obsolete" do
s = StringScanner.new("abc")
- lambda {
+ -> {
s.restsize
}.should complain(/restsize.*obsolete.*rest_size/, verbose: true)
- lambda {
+ -> {
s.restsize
}.should_not complain(verbose: false)
end