Fix weird bug caused by pending specs

This commit is contained in:
Alberto Miedes Garcés
2017-01-16 11:23:48 +01:00
parent d2a8d509b6
commit cb0a477d88

View File

@@ -47,7 +47,7 @@ describe 'ConsulSchema' do
end end
it "returns has_one associations" do it "returns has_one associations" do
pending "Organizations are not being exposed yet" skip "Organizations are not being exposed yet"
organization = create(:organization) organization = create(:organization)
response = execute("{ user(id: #{organization.user_id}) { organization { name } } }") response = execute("{ user(id: #{organization.user_id}) { organization { name } } }")
expect(dig(response, 'data.user.organization.name')).to eq(organization.name) expect(dig(response, 'data.user.organization.name')).to eq(organization.name)
@@ -71,7 +71,7 @@ describe 'ConsulSchema' do
end end
it "executes deeply nested queries" do it "executes deeply nested queries" do
pending "Organizations are not being exposed yet" skip "Organizations are not being exposed yet"
org_user = create(:user) org_user = create(:user)
organization = create(:organization, user: org_user) organization = create(:organization, user: org_user)
org_proposal = create(:proposal, author: org_user) org_proposal = create(:proposal, author: org_user)