specs: move the query for individual to the individual context

This commit is contained in:
Pierre de La Morinerie 2020-01-07 17:27:00 +01:00
parent 4cec26f73a
commit 630c6de967

View file

@ -169,6 +169,7 @@ describe API::V2::GraphqlController do
end
context "dossier" do
context "with individual" do
let(:query) do
"{
dossier(number: #{dossier.id}) {
@ -233,7 +234,6 @@ describe API::V2::GraphqlController do
}"
end
context "with individual" do
it "should be returned" do
expect(gql_errors).to eq(nil)
expect(gql_data).to eq(dossier: {