Skip to content

Commit

Permalink
chore: Relax assertions, Recent json gem versions no longer have cons…
Browse files Browse the repository at this point in the history
…istent error messages. (#777)
  • Loading branch information
impurist authored Feb 12, 2025
1 parent 79ebfcd commit cf3e55b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/integration/endpoints/non_utf_8_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
its(:status) { is_expected.to eq 400 }

it "returns an error message" do
expect(JSON.parse(subject.body)["error"]).to match(/JSON::ParserError.*unexpected token at '{'/)
expect(JSON.parse(subject.body)["error"]).to match(/JSON::ParserError/)
end
end

Expand All @@ -49,6 +49,6 @@
its(:status) { is_expected.to eq 400 }

it "returns an error message" do
expect(JSON.parse(subject.body)["error"]).to match(/JSON::ParserError.*unexpected token at ''/)
expect(JSON.parse(subject.body)["error"]).to match(/JSON::ParserError/)
end
end

0 comments on commit cf3e55b

Please sign in to comment.