summaryrefslogtreecommitdiff
path: root/spec/ruby/shared/file/size.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/shared/file/size.rb')
-rw-r--r--spec/ruby/shared/file/size.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/ruby/shared/file/size.rb b/spec/ruby/shared/file/size.rb
index cba99fe6a5..fa198ed232 100644
--- a/spec/ruby/shared/file/size.rb
+++ b/spec/ruby/shared/file/size.rb
@@ -56,7 +56,7 @@ describe :file_size_raise_when_missing, shared: true do
end
it "raises an error if file_name doesn't exist" do
- -> {@object.send(@method, @missing)}.should raise_error(Errno::ENOENT)
+ -> {@object.send(@method, @missing)}.should.raise(Errno::ENOENT)
end
end