summaryrefslogtreecommitdiff
path: root/spec/graphql/mutations/concerns/mutations/resolves_project_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/mutations/concerns/mutations/resolves_project_spec.rb')
-rw-r--r--spec/graphql/mutations/concerns/mutations/resolves_project_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/graphql/mutations/concerns/mutations/resolves_project_spec.rb b/spec/graphql/mutations/concerns/mutations/resolves_project_spec.rb
index 918e5fb016e..b5c349f6284 100644
--- a/spec/graphql/mutations/concerns/mutations/resolves_project_spec.rb
+++ b/spec/graphql/mutations/concerns/mutations/resolves_project_spec.rb
@@ -11,12 +11,12 @@ describe Mutations::ResolvesProject do
let(:context) { double }
- subject(:mutation) { mutation_class.new(object: nil, context: context) }
+ subject(:mutation) { mutation_class.new(object: nil, context: context, field: nil) }
it 'uses the ProjectsResolver to resolve projects by path' do
project = create(:project)
- expect(Resolvers::ProjectResolver).to receive(:new).with(object: nil, context: context).and_call_original
+ expect(Resolvers::ProjectResolver).to receive(:new).with(object: nil, context: context, field: nil).and_call_original
expect(mutation.resolve_project(full_path: project.full_path).sync).to eq(project)
end
end