Sha256: c39378bf9cb2f6c9b0ab1faf1e60ad8f112bb286f602bf5ae66e35fefe707b60
Contents?: true
Size: 653 Bytes
Versions: 2
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' require 'image_optim/worker/pngquant' describe ImageOptim::Worker::Pngquant do describe 'quality option' do describe 'default' do subject{ described_class::QUALITY_OPTION.default } it{ is_expected.to match(/100\.\.100.*0\.\.100/) } end describe 'value' do let(:options){ {} } subject{ described_class.new(ImageOptim.new, options).quality } context 'by default' do it{ is_expected.to eq(100..100) } end context 'when lossy allowed by default' do let(:options){ {:allow_lossy => true} } it{ is_expected.to eq(0..100) } end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
image_optim-0.22.1 | spec/image_optim/worker/pngquant_spec.rb |
image_optim-0.22.0 | spec/image_optim/worker/pngquant_spec.rb |