Commit 4f684612 by Nick Quaranto

Checking the result of Geometry#transformation_to instead of to_s'ing the result

parent 076cd007
...@@ -77,7 +77,7 @@ class GeometryTest < Test::Unit::TestCase ...@@ -77,7 +77,7 @@ class GeometryTest < Test::Unit::TestCase
should "make sure the modifier gets passed during transformation_to" do should "make sure the modifier gets passed during transformation_to" do
assert @src = Paperclip::Geometry.parse("123x456") assert @src = Paperclip::Geometry.parse("123x456")
assert @dst = Paperclip::Geometry.parse("123x456>") assert @dst = Paperclip::Geometry.parse("123x456>")
assert_equal "123x456>", @src.transformation_to(@dst).to_s assert_equal ["123x456>", nil], @src.transformation_to(@dst)
end end
should "generate correct ImageMagick formatting string for W-formatted string" do should "generate correct ImageMagick formatting string for W-formatted string" do
......
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