From 5c276e1cc91c5ab2a41fbf7827af2fed914a2bc0 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 27 Jul 2019 12:40:09 +0200 Subject: Update to ruby/spec@875a09e --- spec/ruby/core/file/birthtime_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'spec/ruby/core/file/birthtime_spec.rb') 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 -- cgit v1.2.3