spec/unit/pathname_matcher_spec.rb in middleman-webp-0.4.1 vs spec/unit/pathname_matcher_spec.rb in middleman-webp-0.4.2

- old
+ new

@@ -1,10 +1,9 @@ require 'spec_helper' require_relative '../../lib/middleman-webp/pathname_matcher' describe Middleman::WebP::PathnameMatcher do - describe '#matches?' do it 'returns true when given file matches pattern' do patterns = ['**/*.jpg', /jpg$/, ->(path) { path.end_with?('jpg') }] files = [ 'images/sample.jpg', @@ -52,9 +51,7 @@ end it 'handles nil path gracefully and returns false' do Middleman::WebP::PathnameMatcher.new('*.jpg').matches? nil end - end - end