diff --git a/spec/fixtures/reference_images/vips/plasma-constrained-output-size.jpg b/spec/fixtures/reference_images/vips/plasma-constrained-output-size.jpg new file mode 100644 index 0000000..7b5b7e1 Binary files /dev/null and b/spec/fixtures/reference_images/vips/plasma-constrained-output-size.jpg differ diff --git a/spec/morandi_spec.rb b/spec/morandi_spec.rb index 3d90c67..c63c8aa 100644 --- a/spec/morandi_spec.rb +++ b/spec/morandi_spec.rb @@ -223,7 +223,7 @@ end end - describe 'when given an output.max option', vips_wip: processor_name == 'vips' do + describe 'when given an output.max option' do let(:options) { { 'output.max' => max_size } } let(:max_size) { 200 } @@ -234,7 +234,8 @@ expect(processed_image_width).to be <= (max_size) expect(processed_image_height).to be <= (max_size) - expect(file_out).to match_reference_image('plasma-constrained-output-size') + expect(file_out).to match_reference_image(reference_image_prefix, 'plasma-constrained-output-size', + tolerance: 0.006) end end