summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/stat/new_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/file/stat/new_spec.rb')
-rw-r--r--spec/ruby/core/file/stat/new_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/stat/new_spec.rb b/spec/ruby/core/file/stat/new_spec.rb
index f5f22e6711..c0d9432ac8 100644
--- a/spec/ruby/core/file/stat/new_spec.rb
+++ b/spec/ruby/core/file/stat/new_spec.rb
@@ -13,7 +13,7 @@ describe "File::Stat#initialize" do
end
it "raises an exception if the file doesn't exist" do
- lambda {
+ -> {
File::Stat.new(tmp("i_am_a_dummy_file_that_doesnt_exist"))
}.should raise_error(Errno::ENOENT)
end