spec/morandi_spec.rb in morandi-0.11.0 vs spec/morandi_spec.rb in morandi-0.11.1
- old
+ new
@@ -120,20 +120,20 @@
end
end
context 'with increasing quality settings' do
let(:max_quality_file_size) do
- Morandi.process("sample/sample.jpg", { quality: 100 }, "sample/out-100.jpg")
+ Morandi.process("sample/sample.jpg", { 'quality' => 100 }, "sample/out-100.jpg")
File.size("sample/out-100.jpg")
end
let(:default_of_97_quality) do
Morandi.process("sample/sample.jpg", {}, "sample/out-97.jpg")
File.size("sample/out-97.jpg")
end
let(:quality_of_40_by_options_args) do
- Morandi.process("sample/sample.jpg", { quality: 40 }, "sample/out-40.jpg")
+ Morandi.process("sample/sample.jpg", { 'quality' => 40 }, "sample/out-40.jpg")
File.size("sample/out-40.jpg")
end
# Sort the output files' sizes and expect them to match to quality order
it "creates files of increasing size" do