Commit dce60104 by Jon Yurek

Gets rid of a multiple argument warning

parent f0d15d91
...@@ -91,7 +91,7 @@ class ThumbnailTest < Test::Unit::TestCase ...@@ -91,7 +91,7 @@ class ThumbnailTest < Test::Unit::TestCase
end end
should "send the right command to convert when sent #make" do should "send the right command to convert when sent #make" do
Paperclip.expects(:run).with do |arg| Paperclip.expects(:run).with do |*arg|
arg[0] == 'convert' && arg[0] == 'convert' &&
arg[1] == ':source -resize "x50" -crop "100x50+114+0" +repage :dest' && arg[1] == ':source -resize "x50" -crop "100x50+114+0" +repage :dest' &&
arg[2][:source] == "#{File.expand_path(@thumb.file.path)}[0]" arg[2][:source] == "#{File.expand_path(@thumb.file.path)}[0]"
...@@ -117,7 +117,7 @@ class ThumbnailTest < Test::Unit::TestCase ...@@ -117,7 +117,7 @@ class ThumbnailTest < Test::Unit::TestCase
end end
should "send the right command to convert when sent #make" do should "send the right command to convert when sent #make" do
Paperclip.expects(:run).with do |arg| Paperclip.expects(:run).with do |*arg|
arg[0] == 'convert' && arg[0] == 'convert' &&
arg[1] == '-strip :source -resize "x50" -crop "100x50+114+0" +repage :dest' && arg[1] == '-strip :source -resize "x50" -crop "100x50+114+0" +repage :dest' &&
arg[2][:source] == "#{File.expand_path(@thumb.file.path)}[0]" arg[2][:source] == "#{File.expand_path(@thumb.file.path)}[0]"
...@@ -157,7 +157,7 @@ class ThumbnailTest < Test::Unit::TestCase ...@@ -157,7 +157,7 @@ class ThumbnailTest < Test::Unit::TestCase
end end
should "send the right command to convert when sent #make" do should "send the right command to convert when sent #make" do
Paperclip.expects(:run).with do |arg| Paperclip.expects(:run).with do |*arg|
arg[0] == 'convert' && arg[0] == 'convert' &&
arg[1] == ':source -resize "x50" -crop "100x50+114+0" +repage -strip -depth 8 :dest' && arg[1] == ':source -resize "x50" -crop "100x50+114+0" +repage -strip -depth 8 :dest' &&
arg[2][:source] == "#{File.expand_path(@thumb.file.path)}[0]" arg[2][:source] == "#{File.expand_path(@thumb.file.path)}[0]"
......
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