Skip to content

Commit

Permalink
convert per image specs in group ‘losslessness’ into two specs using …
Browse files Browse the repository at this point in the history
…parallel optimization, part of #60
  • Loading branch information
toy committed Oct 13, 2014
1 parent f757e6b commit 6f9f9b6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/image_optim_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -259,15 +259,15 @@ def check_lossless_optimization(original, optimized)
expect(nrmse.to_f).to eq(0)
end

rotate_images.each do |image|
it "rotates and optimizes #{image} losslessly" do
check_lossless_optimization(rotated, ImageOptim.optimize_image(image))
it "rotates and optimizes images losslessly" do
ImageOptim.optimize_images(rotate_images) do |_, dst|
check_lossless_optimization(rotated, dst)
end
end

(test_images - rotate_images).each do |image|
it "optimizes #{image} losslessly" do
check_lossless_optimization(image, ImageOptim.optimize_image(image))
it "optimizes images losslessly" do
ImageOptim.optimize_images(test_images - rotate_images) do |src, dst|
check_lossless_optimization(src, dst)
end
end
end
Expand Down

0 comments on commit 6f9f9b6

Please sign in to comment.