From eb41f7e85ec4bcfafe270f6ac2adc27f81120d93 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Thu, 15 Feb 2024 12:55:47 +0100 Subject: [PATCH] test: fix graphql syntax error output since JSON parser is now yajl-ruby --- spec/controllers/api/v2/graphql_controller_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/controllers/api/v2/graphql_controller_spec.rb b/spec/controllers/api/v2/graphql_controller_spec.rb index 2a086ddb1..2db724345 100644 --- a/spec/controllers/api/v2/graphql_controller_spec.rb +++ b/spec/controllers/api/v2/graphql_controller_spec.rb @@ -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