diff --git a/app/graphql/editor_api_schema.rb b/app/graphql/editor_api_schema.rb index 345444807..ca3193d46 100644 --- a/app/graphql/editor_api_schema.rb +++ b/app/graphql/editor_api_schema.rb @@ -19,13 +19,13 @@ class EditorApiSchema < GraphQL::Schema default_max_page_size 10 # GraphQL-Ruby calls this when something goes wrong while running a query: - def self.type_error(err, context) - # if err.is_a?(GraphQL::InvalidNullError) - # # report to your bug tracker here - # return nil - # end - super - end + # def self.type_error(err, context) + # # if err.is_a?(GraphQL::InvalidNullError) + # # # report to your bug tracker here + # # return nil + # # end + # super + # end # Union and Interface Resolution def self.resolve_type(_abstract_type, obj, _ctx) diff --git a/spec/models/ability_spec.rb b/spec/models/ability_spec.rb index a0d76f79c..5d47c4d5f 100644 --- a/spec/models/ability_spec.rb +++ b/spec/models/ability_spec.rb @@ -10,7 +10,6 @@ let(:starter_project) { build(:project, user_id: nil) } describe 'Project' do - context 'when no user' do let(:user) { nil } @@ -61,7 +60,7 @@ describe 'Component' do let(:starter_project_component) { build(:component, project: starter_project) } - let(:component) { build(:component, project: project) } + let(:component) { build(:component, project:) } context 'when no user' do let(:user) { nil }