test: fix graphql syntax error output since JSON parser is now yajl-ruby

This commit is contained in:
Colin Darie 2024-02-15 12:55:47 +01:00
parent b89fcf6c2b
commit eb41f7e85e
No known key found for this signature in database
GPG key ID: 8C76CADD40253590

View file

@ -984,7 +984,7 @@ describe API::V2::GraphqlController do
it "should fail" do
expect(gql_data).to eq(nil)
expect(gql_errors).not_to eq(nil)
expect(body[:errors].first[:message]).to eq("unexpected token at '{'")
expect(body[:errors].first[:message]).to eq("Variable $input of type DossierEnvoyerMessageInput! was provided invalid value")
expect(body[:errors].first.key?(:backtrace)).to be_falsey
end
end