diff options
Diffstat (limited to 'spec/ruby/core/io/shared/binwrite.rb')
| -rw-r--r-- | spec/ruby/core/io/shared/binwrite.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/io/shared/binwrite.rb b/spec/ruby/core/io/shared/binwrite.rb index 1a88442a3b..17682a1a93 100644 --- a/spec/ruby/core/io/shared/binwrite.rb +++ b/spec/ruby/core/io/shared/binwrite.rb @@ -68,7 +68,7 @@ describe :io_binwrite, shared: true do end it "raises an error if readonly mode is specified" do - lambda { IO.send(@method, @filename, "abcde", mode: "r") }.should raise_error(IOError) + -> { IO.send(@method, @filename, "abcde", mode: "r") }.should raise_error(IOError) end it "truncates if empty :opts provided and offset skipped" do |
