diff options
Diffstat (limited to 'spec/services/ci/pipeline_artifacts/coverage_report_service_spec.rb')
-rw-r--r-- | spec/services/ci/pipeline_artifacts/coverage_report_service_spec.rb | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/spec/services/ci/pipeline_artifacts/coverage_report_service_spec.rb b/spec/services/ci/pipeline_artifacts/coverage_report_service_spec.rb index 6d4dcf28108..c4558bddc85 100644 --- a/spec/services/ci/pipeline_artifacts/coverage_report_service_spec.rb +++ b/spec/services/ci/pipeline_artifacts/coverage_report_service_spec.rb @@ -35,6 +35,7 @@ RSpec.describe Ci::PipelineArtifacts::CoverageReportService do end it 'logs relevant information' do + allow(Gitlab::AppLogger).to receive(:info).and_call_original expect(Gitlab::AppLogger).to receive(:info).with({ project_id: project.id, pipeline_id: pipeline.id, @@ -52,28 +53,12 @@ RSpec.describe Ci::PipelineArtifacts::CoverageReportService do it_behaves_like 'creating or updating a pipeline coverage report' - context 'when ci_update_unlocked_pipeline_artifacts feature flag is enabled' do - it "artifact has pipeline's locked status" do - subject - - artifact = Ci::PipelineArtifact.first - - expect(artifact.locked).to eq(pipeline.locked) - end - end + it "artifact has pipeline's locked status" do + subject - context 'when ci_update_unlocked_pipeline_artifacts is disabled' do - before do - stub_feature_flags(ci_update_unlocked_pipeline_artifacts: false) - end - - it 'artifact has unknown locked status' do - subject + artifact = Ci::PipelineArtifact.first - artifact = Ci::PipelineArtifact.first - - expect(artifact.locked).to eq('unknown') - end + expect(artifact.locked).to eq(pipeline.locked) end end |