spec/unit/options_spec.rb in middleman-webp-0.4.1 vs spec/unit/options_spec.rb in middleman-webp-0.4.2
- old
+ new
@@ -2,20 +2,20 @@
require 'pathname'
require_relative '../../lib/middleman-webp/options'
describe Middleman::WebP::Options do
describe '#allow_skip' do
- it "should default to true" do
+ it 'should default to true' do
options = Middleman::WebP::Options.new
options.allow_skip.must_equal(true)
end
-
- it "should allow setting to true" do
+
+ it 'should allow setting to true' do
options = Middleman::WebP::Options.new(allow_skip: false)
options.allow_skip.must_equal(false)
end
end
-
+
describe '#for' do
it 'returns cwebp args when given file matches option file pattern glob' do
path = Pathname.new('test_image.jpg')
options_hash = {
conversion_options: {