summaryrefslogtreecommitdiff
path: root/spec/workers/merge_requests/create_pipeline_worker_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/workers/merge_requests/create_pipeline_worker_spec.rb')
-rw-r--r--spec/workers/merge_requests/create_pipeline_worker_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/workers/merge_requests/create_pipeline_worker_spec.rb b/spec/workers/merge_requests/create_pipeline_worker_spec.rb
index 8efce5220be..06d44c45706 100644
--- a/spec/workers/merge_requests/create_pipeline_worker_spec.rb
+++ b/spec/workers/merge_requests/create_pipeline_worker_spec.rb
@@ -13,7 +13,7 @@ RSpec.describe MergeRequests::CreatePipelineWorker do
context 'when the objects exist' do
it 'calls the merge request create pipeline service and calls update head pipeline' do
aggregate_failures do
- expect_next_instance_of(MergeRequests::CreatePipelineService, project, user) do |service|
+ expect_next_instance_of(MergeRequests::CreatePipelineService, project: project, current_user: user) do |service|
expect(service).to receive(:execute).with(merge_request)
end