Commit 45186341 authored by Jan Provaznik's avatar Jan Provaznik

Merge branch 'ld-include-laziness-in-graphql-helpers' into 'master'

Include `Gitlab::Graphql::Laziness` in  `GraphqlHelpers`

See merge request gitlab-org/gitlab!63955
parents 16ba3dd5 51aa0bf4
......@@ -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