From c4110c35bf261c7e67a6dfc7e14079885c38e7a9 Mon Sep 17 00:00:00 2001 From: Colin Darie Date: Wed, 7 Feb 2024 12:10:40 +0100 Subject: [PATCH] fix(graphql): json error is not anymore prefixed by unknown line number --- 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 3447beaec..2a086ddb1 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("809: unexpected token at '{'") + expect(body[:errors].first[:message]).to eq("unexpected token at '{'") expect(body[:errors].first.key?(:backtrace)).to be_falsey end end