Add Organization to API
This commit is contained in:
@@ -37,7 +37,6 @@ describe 'ConsulSchema' do
|
||||
end
|
||||
|
||||
it "returns has_one associations" do
|
||||
skip "Organizations are not being exposed yet"
|
||||
organization = create(:organization)
|
||||
response = execute("{ user(id: #{organization.user_id}) { organization { name } } }")
|
||||
expect(dig(response, 'data.user.organization.name')).to eq(organization.name)
|
||||
@@ -61,7 +60,6 @@ describe 'ConsulSchema' do
|
||||
end
|
||||
|
||||
it "executes deeply nested queries" do
|
||||
skip "Organizations are not being exposed yet"
|
||||
org_user = create(:user)
|
||||
organization = create(:organization, user: org_user)
|
||||
org_proposal = create(:proposal, author: org_user)
|
||||
|
||||
Reference in New Issue
Block a user