Commit 51aa0bf4 authored by Luke Duncalfe's avatar Luke Duncalfe Committed by Jan Provaznik

Include `laziness` in `GraphqlHelpers`

A number of GraphQL tests include both `GraphqlHelpers` and
`Gitlab::Graphql::Laziness`. This change has `GraphqlHelpers` include
`Gitlab::Graphql::Laziness` so it's available to tests.
parent d52f484a
......@@ -3,7 +3,6 @@
require 'spec_helper'
RSpec.describe Resolvers::EpicIssuesResolver do
include ::Gitlab::Graphql::Laziness
include GraphqlHelpers
let_it_be(:current_user) { create(:user) }
......
......@@ -4,7 +4,6 @@ require 'spec_helper'
RSpec.describe Resolvers::VulnerabilitiesGradeResolver do
include GraphqlHelpers
include ::Gitlab::Graphql::Laziness
subject do
force(resolve(described_class, obj: group, args: args, ctx: { current_user: user }))
......
......@@ -4,7 +4,6 @@ require 'spec_helper'
RSpec.describe ::CachingArrayResolver do
include GraphqlHelpers
include Gitlab::Graphql::Laziness
let_it_be(:admins) { create_list(:user, 4, admin: true) }
let(:query_context) { { current_user: admins.first } }
......
......@@ -4,7 +4,6 @@ require 'spec_helper'
RSpec.describe Resolvers::PackageDetailsResolver do
include GraphqlHelpers
include ::Gitlab::Graphql::Laziness
let_it_be_with_reload(:project) { create(:project) }
let_it_be(:user) { project.owner }
......
# frozen_string_literal: true
module GraphqlHelpers
def self.included(base)
base.include(::Gitlab::Graphql::Laziness)
end
MutationDefinition = Struct.new(:query, :variables)
NoData = Class.new(StandardError)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment