specs: move the query for individual to the individual context
This commit is contained in:
parent
4cec26f73a
commit
630c6de967
1 changed files with 57 additions and 57 deletions
|
@ -169,6 +169,7 @@ describe API::V2::GraphqlController do
|
||||||
end
|
end
|
||||||
|
|
||||||
context "dossier" do
|
context "dossier" do
|
||||||
|
context "with individual" do
|
||||||
let(:query) do
|
let(:query) do
|
||||||
"{
|
"{
|
||||||
dossier(number: #{dossier.id}) {
|
dossier(number: #{dossier.id}) {
|
||||||
|
@ -233,7 +234,6 @@ describe API::V2::GraphqlController do
|
||||||
}"
|
}"
|
||||||
end
|
end
|
||||||
|
|
||||||
context "with individual" do
|
|
||||||
it "should be returned" do
|
it "should be returned" do
|
||||||
expect(gql_errors).to eq(nil)
|
expect(gql_errors).to eq(nil)
|
||||||
expect(gql_data).to eq(dossier: {
|
expect(gql_data).to eq(dossier: {
|
||||||
|
|
Loading…
Reference in a new issue