aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/io/binread_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/io/binread_spec.rb')
-rw-r--r--spec/ruby/core/io/binread_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/io/binread_spec.rb b/spec/ruby/core/io/binread_spec.rb
index 961044da58..a3f752d8f9 100644
--- a/spec/ruby/core/io/binread_spec.rb
+++ b/spec/ruby/core/io/binread_spec.rb
@@ -38,10 +38,10 @@ describe "IO.binread" do
end
it "raises an ArgumentError when not passed a valid length" do
- lambda { IO.binread @fname, -1 }.should raise_error(ArgumentError)
+ -> { IO.binread @fname, -1 }.should raise_error(ArgumentError)
end
it "raises an Errno::EINVAL when not passed a valid offset" do
- lambda { IO.binread @fname, 0, -1 }.should raise_error(Errno::EINVAL)
+ -> { IO.binread @fname, 0, -1 }.should raise_error(Errno::EINVAL)
end
end