Permalink
Browse files

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

… the result
  • Loading branch information...
1 parent 076cd00 commit 4f6846126534b6debe20e6d3a3c3c29d6682b497 @qrush qrush committed Jun 30, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/geometry_test.rb
View
@@ -77,7 +77,7 @@ class GeometryTest < Test::Unit::TestCase
should "make sure the modifier gets passed during transformation_to" do
assert @src = 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
should "generate correct ImageMagick formatting string for W-formatted string" do

0 comments on commit 4f68461

Please sign in to comment.