diff options
Diffstat (limited to 'spec/ruby/core/file/ftype_spec.rb')
-rw-r--r-- | spec/ruby/core/file/ftype_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/ruby/core/file/ftype_spec.rb b/spec/ruby/core/file/ftype_spec.rb index 20e9af7e5f..8ff70baa80 100644 --- a/spec/ruby/core/file/ftype_spec.rb +++ b/spec/ruby/core/file/ftype_spec.rb @@ -12,8 +12,9 @@ describe "File.ftype" do end it "raises Errno::ENOENT if the file is not valid" do - l = -> { File.ftype("/#{$$}#{Time.now.to_f}") } - l.should raise_error(Errno::ENOENT) + -> { + File.ftype("/#{$$}#{Time.now.to_f}") + }.should raise_error(Errno::ENOENT) end it "returns a String" do |