test/test_geometry.rb in paperclip-2.1.0 vs test/test_geometry.rb in paperclip-2.1.2
- old
+ new
@@ -80,10 +80,10 @@
assert @geo.width > 0
end
should "not generate from a bad file" do
file = "/home/This File Does Not Exist.omg"
- assert_raise(Errno::ENOENT){ @geo = Paperclip::Geometry.from_file(file) }
+ assert_raise(Paperclip::NotIdentifiedByImageMagickError){ @geo = Paperclip::Geometry.from_file(file) }
end
[['vertical', 900, 1440, true, false, false, 1440, 900, 0.625],
['horizontal', 1024, 768, false, true, false, 1024, 768, 1.3333],
['square', 100, 100, false, false, true, 100, 100, 1]].each do |args|