summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/shared/stat.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/file/shared/stat.rb')
-rw-r--r--spec/ruby/core/file/shared/stat.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/shared/stat.rb b/spec/ruby/core/file/shared/stat.rb
index aac710dd2f..fdaf97ea61 100644
--- a/spec/ruby/core/file/shared/stat.rb
+++ b/spec/ruby/core/file/shared/stat.rb
@@ -25,7 +25,7 @@ describe :file_stat, shared: true do
end
it "raises an Errno::ENOENT if the file does not exist" do
- lambda {
+ -> {
File.send(@method, "fake_file")
}.should raise_error(Errno::ENOENT)
end