Fix failing spec

This commit is contained in:
Alberto Miedes Garcés
2017-01-08 14:27:20 +01:00
parent 398bc8c211
commit e1b3d468e5
2 changed files with 2 additions and 3 deletions

View File

@@ -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

View File

@@ -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) }