Commit 94443873 by Jon Yurek

The 5k.png is 434x66 not 434x73

parent dda3166a
...@@ -129,14 +129,14 @@ class GeometryTest < Test::Unit::TestCase ...@@ -129,14 +129,14 @@ class GeometryTest < Test::Unit::TestCase
file = fixture_file("5k.png") file = fixture_file("5k.png")
file = File.new(file, 'rb') file = File.new(file, 'rb')
assert_nothing_raised{ @geo = Paperclip::Geometry.from_file(file) } assert_nothing_raised{ @geo = Paperclip::Geometry.from_file(file) }
assert_equal 73, @geo.height assert_equal 66, @geo.height
assert_equal 434, @geo.width assert_equal 434, @geo.width
end end
should "be generated from a file path" do should "be generated from a file path" do
file = fixture_file("5k.png") file = fixture_file("5k.png")
assert_nothing_raised{ @geo = Paperclip::Geometry.from_file(file) } assert_nothing_raised{ @geo = Paperclip::Geometry.from_file(file) }
assert_equal 73, @geo.height assert_equal 66, @geo.height
assert_equal 434, @geo.width assert_equal 434, @geo.width
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment