spec/lib/percy/capybara/loaders/native_loader_spec.rb in percy-capybara-2.5.0 vs spec/lib/percy/capybara/loaders/native_loader_spec.rb in percy-capybara-2.5.1

- old
+ new

@@ -223,10 +223,10 @@ resource = find_resource(resources, '/images/percy.svg') path = File.expand_path('../../client/testdata/images/percy.svg', __FILE__) content = File.read(path) # In Ruby 1.9.3 the SVG mimetype is not registered so our mini ruby webserver doesn't serve # the correct content type. Allow either to work here so we can test older Rubies fully. - expect(resource.mimetype).to match(/image\/svg\+xml|application\/octet-stream/) + expect(resource.mimetype).to match(%r{image/svg\+xml|application/octet-stream}) expected_sha = Digest::SHA256.hexdigest(content) expect(Digest::SHA256.hexdigest(resource.content)).to eq(expected_sha) expect(resource.sha).to eq(expected_sha) resource = find_resource(resources, '/images/bg-relative.png')