Remove commented graphql code
This code was commented in commit ad8aba07.
This commit is contained in:
@@ -49,12 +49,6 @@ describe "Consul Schema" do
|
||||
expect(dig(response, "data.proposal.title")).to eq(proposal.title)
|
||||
end
|
||||
|
||||
xit "returns has_one associations" do
|
||||
organization = create(:organization)
|
||||
response = execute("{ user(id: #{organization.user_id}) { organization { name } } }")
|
||||
expect(dig(response, "data.user.organization.name")).to eq(organization.name)
|
||||
end
|
||||
|
||||
it "returns belongs_to associations" do
|
||||
response = execute("{ proposal(id: #{proposal.id}) { public_author { username } } }")
|
||||
expect(dig(response, "data.proposal.public_author.username")).to eq(proposal.public_author.username)
|
||||
@@ -72,15 +66,6 @@ describe "Consul Schema" do
|
||||
expect(comment_bodies).to match_array([comment_1.body, comment_2.body])
|
||||
end
|
||||
|
||||
xit "executes deeply nested queries" do
|
||||
org_user = create(:user)
|
||||
organization = create(:organization, user: org_user)
|
||||
org_proposal = create(:proposal, author: org_user)
|
||||
response = execute("{ proposal(id: #{org_proposal.id}) { public_author { organization { name } } } }")
|
||||
|
||||
expect(dig(response, "data.proposal.public_author.organization.name")).to eq(organization.name)
|
||||
end
|
||||
|
||||
it "hides confidential fields of Int type" do
|
||||
response = execute("{ user(id: #{user.id}) { failed_census_calls_count } }")
|
||||
expect(hidden_field?(response, "failed_census_calls_count")).to be_truthy
|
||||
|
||||
Reference in New Issue
Block a user