diff options
Diffstat (limited to 'spec/ruby/core/file/chmod_spec.rb')
| -rw-r--r-- | spec/ruby/core/file/chmod_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/file/chmod_spec.rb b/spec/ruby/core/file/chmod_spec.rb index 6c4e1099e3..86171691f6 100644 --- a/spec/ruby/core/file/chmod_spec.rb +++ b/spec/ruby/core/file/chmod_spec.rb @@ -106,11 +106,11 @@ describe "File.chmod" do end it "throws a TypeError if the given path is not coercable into a string" do - lambda { File.chmod(0, []) }.should raise_error(TypeError) + -> { File.chmod(0, []) }.should raise_error(TypeError) end it "raises an error for a non existent path" do - lambda { + -> { File.chmod(0644, "#{@file}.not.existing") }.should raise_error(Errno::ENOENT) end |
