Fix failing spec
This commit is contained in:
@@ -17,7 +17,6 @@ module GraphQL
|
|||||||
description 'The root query for the schema'
|
description 'The root query for the schema'
|
||||||
|
|
||||||
query_type_creator.created_api_types.each do |model, created_type|
|
query_type_creator.created_api_types.each do |model, created_type|
|
||||||
# debugger
|
|
||||||
if created_type.fields['id']
|
if created_type.fields['id']
|
||||||
field model.name.underscore.to_sym do
|
field model.name.underscore.to_sym do
|
||||||
type created_type
|
type created_type
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ require 'rails_helper'
|
|||||||
describe GraphQL::QueryTypeCreator do
|
describe GraphQL::QueryTypeCreator do
|
||||||
let(:api_type_definitions) do
|
let(:api_type_definitions) do
|
||||||
{
|
{
|
||||||
ProposalNotification => { fields: { title: 'string' } },
|
ProposalNotification => { fields: { title: :string } },
|
||||||
Proposal => { fields: { id: 'integer', title: 'string' } }
|
Proposal => { fields: { id: :integer, title: :string } }
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
let(:api_types_creator) { GraphQL::ApiTypesCreator.new(api_type_definitions) }
|
let(:api_types_creator) { GraphQL::ApiTypesCreator.new(api_type_definitions) }
|
||||||
|
|||||||
Reference in New Issue
Block a user