summaryrefslogtreecommitdiff
path: root/spec/ruby/library/stringscanner/shared/pos.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/stringscanner/shared/pos.rb')
-rw-r--r--spec/ruby/library/stringscanner/shared/pos.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/stringscanner/shared/pos.rb b/spec/ruby/library/stringscanner/shared/pos.rb
index 80ded17b0f..6d540881f2 100644
--- a/spec/ruby/library/stringscanner/shared/pos.rb
+++ b/spec/ruby/library/stringscanner/shared/pos.rb
@@ -41,12 +41,12 @@ describe :strscan_pos_set, shared: true do
end
it "raises a RangeError if position too far backward" do
- lambda {
+ -> {
@s.send(@method, -20)
}.should raise_error(RangeError)
end
it "raises a RangeError when the passed argument is out of range" do
- lambda { @s.send(@method, 20) }.should raise_error(RangeError)
+ -> { @s.send(@method, 20) }.should raise_error(RangeError)
end
end