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