summaryrefslogtreecommitdiff
path: root/spec/ruby/core/file/stat
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/file/stat')
-rw-r--r--spec/ruby/core/file/stat/birthtime_spec.rb2
-rw-r--r--spec/ruby/core/file/stat/new_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/file/stat/birthtime_spec.rb b/spec/ruby/core/file/stat/birthtime_spec.rb
index 40e501e87b..a727bbe566 100644
--- a/spec/ruby/core/file/stat/birthtime_spec.rb
+++ b/spec/ruby/core/file/stat/birthtime_spec.rb
@@ -21,7 +21,7 @@ describe "File::Stat#birthtime" do
platform_is :linux, :openbsd do
it "raises an NotImplementedError" do
st = File.stat(@file)
- lambda { st.birthtime }.should raise_error(NotImplementedError)
+ -> { st.birthtime }.should raise_error(NotImplementedError)
end
end
end
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