diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-05 18:09:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-02-05 18:09:28 +0300 |
commit | 4046c3447e0a01fe48e224e72e12b27859b92822 (patch) | |
tree | 63b8293134d5cc6030abc7a5d2aeb34a34f54925 /spec/workers/ci | |
parent | 64f7eb2b37aebbb713463b2f6971b13191c1b0db (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/workers/ci')
-rw-r--r-- | spec/workers/ci/build_report_result_worker_spec.rb | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/spec/workers/ci/build_report_result_worker_spec.rb b/spec/workers/ci/build_report_result_worker_spec.rb deleted file mode 100644 index aedfa70c8b8..00000000000 --- a/spec/workers/ci/build_report_result_worker_spec.rb +++ /dev/null @@ -1,30 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' - -RSpec.describe Ci::BuildReportResultWorker do - subject { described_class.new.perform(build_id) } - - context 'when build exists' do - let(:build) { create(:ci_build) } - let(:build_id) { build.id } - - it 'calls build report result service' do - expect_next_instance_of(Ci::BuildReportResultService) do |build_report_result_service| - expect(build_report_result_service).to receive(:execute) - end - - subject - end - end - - context 'when build does not exist' do - let(:build_id) { -1 } - - it 'does not call build report result service' do - expect(Ci::BuildReportResultService).not_to receive(:execute) - - subject - end - end -end |