diff options
Diffstat (limited to 'spec/ruby/core/file/shared/read.rb')
-rw-r--r-- | spec/ruby/core/file/shared/read.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/file/shared/read.rb b/spec/ruby/core/file/shared/read.rb index 7fff7f29d6..a2d479966d 100644 --- a/spec/ruby/core/file/shared/read.rb +++ b/spec/ruby/core/file/shared/read.rb @@ -3,13 +3,13 @@ require_relative '../../dir/fixtures/common' describe :file_read_directory, shared: true do platform_is :darwin, :linux, :openbsd, :windows do it "raises an Errno::EISDIR when passed a path that is a directory" do - lambda { @object.send(@method, ".") }.should raise_error(Errno::EISDIR) + -> { @object.send(@method, ".") }.should raise_error(Errno::EISDIR) end end platform_is :freebsd, :netbsd do it "does not raises any exception when passed a path that is a directory" do - lambda { @object.send(@method, ".") }.should_not raise_error + -> { @object.send(@method, ".") }.should_not raise_error end end end |