spec/unit/pathname_matcher_spec.rb in middleman-webp-0.2.5 vs spec/unit/pathname_matcher_spec.rb in middleman-webp-0.2.6

- old
+ new

@@ -7,11 +7,11 @@ it 'returns true when given file matches pattern' do patterns = ['**/*.jpg', /jpg$/, ->(path) { path.end_with?('jpg') }] files = [ 'images/sample.jpg', Pathname.new('images/another.jpg'), - File.new('spec/fixtures/empty.jpg') + File.new('spec/fixtures/dummy-build/empty.jpg') ] patterns.each do |p| matcher = Middleman::WebP::PathnameMatcher.new(p) files.each do |f| @@ -24,10 +24,10 @@ it 'returns false when given file won\'t match pattern' do patterns = ['**/*.jpg', /jpg$/, ->(path) { path.end_with?('jpg') }] files = [ 'images/sample.png', Pathname.new('images/another.png'), - File.new('spec/fixtures/empty.png') + File.new('spec/fixtures/dummy-build/empty.png') ] patterns.each do |p| matcher = Middleman::WebP::PathnameMatcher.new(p) files.each do |f|