From 406d05a47aac137ca43be1a3ca92a08e305bf0f6 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Mon, 22 Jul 2024 11:03:25 +0200 Subject: [PATCH] chore(spec): remove duplicated specs --- .../api/v2/graphql_controller_spec.rb | 39 ------------------- 1 file changed, 39 deletions(-) diff --git a/spec/controllers/api/v2/graphql_controller_spec.rb b/spec/controllers/api/v2/graphql_controller_spec.rb index 0d6f109fa..26750062e 100644 --- a/spec/controllers/api/v2/graphql_controller_spec.rb +++ b/spec/controllers/api/v2/graphql_controller_spec.rb @@ -1464,43 +1464,4 @@ describe API::V2::GraphqlController do end end end - - context "when not authenticated" do - it "should return error" do - expect(gql_data).to eq(nil) - expect(gql_errors).not_to eq(nil) - end - - describe "dossier" do - let(:query) { "{ dossier(number: #{dossier.id}) { id number usager { email } } }" } - - it "should return error" do - expect(gql_data).to eq(nil) - expect(gql_errors).not_to eq(nil) - end - end - - describe "mutation" do - let(:query) do - "mutation { - dossierEnvoyerMessage(input: { - dossierId: \"#{dossier.to_typed_id}\", - instructeurId: \"#{instructeur.to_typed_id}\", - body: \"Bonjour\" - }) { - message { - body - } - errors { - message - } - } - }" - end - - it "should return error" do - expect(gql_data[:dossierEnvoyerMessage][:errors].first[:message]).to eq("Le jeton utilisé est configuré seulement en lecture") - end - end - end end