diff options
Diffstat (limited to 'spec/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service_spec.rb')
-rw-r--r-- | spec/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service_spec.rb | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/spec/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service_spec.rb b/spec/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service_spec.rb index 75233248113..5d854b61f14 100644 --- a/spec/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service_spec.rb +++ b/spec/services/ci/pipeline_artifacts/create_code_quality_mr_diff_report_service_spec.rb @@ -51,28 +51,12 @@ RSpec.describe ::Ci::PipelineArtifacts::CreateCodeQualityMrDiffReportService do end end - 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(head_pipeline.locked) - end - end - - 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 + it "artifact has pipeline's locked status" do + subject - artifact = Ci::PipelineArtifact.first + artifact = Ci::PipelineArtifact.first - expect(artifact.locked).to eq('unknown') - end + expect(artifact.locked).to eq(head_pipeline.locked) end it 'does not persist the same artifact twice' do |