diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-10 12:08:27 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-09-10 12:08:27 +0300 |
commit | 1385b54a3e44a90a463d4975bd639089be056778 (patch) | |
tree | 4ba1fbd8e29115ba21472d5ebc88dfa6d9d637a4 /spec/workers/create_pipeline_worker_spec.rb | |
parent | 8d8b960cece096fb6af9ada2ca8c88fc48b5476c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/create_pipeline_worker_spec.rb')
-rw-r--r-- | spec/workers/create_pipeline_worker_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/workers/create_pipeline_worker_spec.rb b/spec/workers/create_pipeline_worker_spec.rb index 6a3729fa28a..da85d700429 100644 --- a/spec/workers/create_pipeline_worker_spec.rb +++ b/spec/workers/create_pipeline_worker_spec.rb @@ -9,7 +9,7 @@ RSpec.describe CreatePipelineWorker do context 'when a project not found' do it 'does not call the Service' do expect(Ci::CreatePipelineService).not_to receive(:new) - expect { worker.perform(99, create(:user).id, 'master', :web) }.to raise_error(ActiveRecord::RecordNotFound) + expect { worker.perform(non_existing_record_id, create(:user).id, 'master', :web) }.to raise_error(ActiveRecord::RecordNotFound) end end @@ -18,7 +18,7 @@ RSpec.describe CreatePipelineWorker do it 'does not call the Service' do expect(Ci::CreatePipelineService).not_to receive(:new) - expect { worker.perform(project.id, 99, project.default_branch, :web) }.to raise_error(ActiveRecord::RecordNotFound) + expect { worker.perform(project.id, non_existing_record_id, project.default_branch, :web) }.to raise_error(ActiveRecord::RecordNotFound) end end |