diff options
Diffstat (limited to 'spec/ruby/core/file/mtime_spec.rb')
-rw-r--r-- | spec/ruby/core/file/mtime_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/core/file/mtime_spec.rb b/spec/ruby/core/file/mtime_spec.rb index 833f759eaa..1941e2ff85 100644 --- a/spec/ruby/core/file/mtime_spec.rb +++ b/spec/ruby/core/file/mtime_spec.rb @@ -29,7 +29,7 @@ describe "File.mtime" do end it "raises an Errno::ENOENT exception if the file is not found" do - lambda { File.mtime('bogus') }.should raise_error(Errno::ENOENT) + -> { File.mtime('bogus') }.should raise_error(Errno::ENOENT) end end |