diff options
Diffstat (limited to 'spec/ruby/core/file/birthtime_spec.rb')
-rw-r--r-- | spec/ruby/core/file/birthtime_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/file/birthtime_spec.rb b/spec/ruby/core/file/birthtime_spec.rb index cab749f7b4..755601df64 100644 --- a/spec/ruby/core/file/birthtime_spec.rb +++ b/spec/ruby/core/file/birthtime_spec.rb @@ -20,13 +20,13 @@ describe "File.birthtime" do end it "raises an Errno::ENOENT exception if the file is not found" do - lambda { File.birthtime('bogus') }.should raise_error(Errno::ENOENT) + -> { File.birthtime('bogus') }.should raise_error(Errno::ENOENT) end end platform_is :openbsd do it "raises an NotImplementedError" do - lambda { File.birthtime(@file) }.should raise_error(NotImplementedError) + -> { File.birthtime(@file) }.should raise_error(NotImplementedError) end end @@ -52,7 +52,7 @@ describe "File#birthtime" do platform_is :openbsd do it "raises an NotImplementedError" do - lambda { @file.birthtime }.should raise_error(NotImplementedError) + -> { @file.birthtime }.should raise_error(NotImplementedError) end end |