Skip to content

Commit

Permalink
Merge pull request #3437 from projectblacklight/resolver-spec-error
Browse files Browse the repository at this point in the history
Check for less specific error message
  • Loading branch information
corylown authored Feb 12, 2025
2 parents 919cce5 + 1cf57b1 commit 91c4c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/services/spotlight/iiif_resource_resolver_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
it 'logs that the JSON was unparsable and falls through to an no-canvas error' do
klass = described_class.name
expect(Rails.logger).to receive(:warn).with(
a_string_matching(/#{klass} failed to parse #{iiif_manifest_url} .* unexpected token at/)
a_string_matching(/#{klass} failed to parse #{iiif_manifest_url}/)
)
expect { resolver.resolve! }.to raise_error(Spotlight::IiifResourceResolver::ManifestError)
end
Expand Down

0 comments on commit 91c4c83

Please sign in to comment.