summaryrefslogtreecommitdiff
path: root/spec/models/ci
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-04-04 19:46:37 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2019-04-04 19:46:37 +0000
commite2425149760830b04c85dbfe8b01e65c472c33f3 (patch)
treebebb5f84cbd3aa464d91277a934b9942f6000449 /spec/models/ci
parent6d000c9f9cbc65f92ed27ea55a14e5de9b11320d (diff)
parent8e51439e809db6ff5ff86bd79cdf95af62821a1d (diff)
downloadgitlab-ce-e2425149760830b04c85dbfe8b01e65c472c33f3.tar.gz
Merge branch 'drop-usage-of-leagcy-artifacts' into 'master'
Drop legacy artifacts usage as there are no leftovers See merge request gitlab-org/gitlab-ce!24294
Diffstat (limited to 'spec/models/ci')
-rw-r--r--spec/models/ci/build_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 2c41dfa65cd..697fe3fda06 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -117,6 +117,16 @@ describe Ci::Build do
it 'returns the job' do
is_expected.to include(job)
end
+
+ context 'when ci_enable_legacy_artifacts feature flag is disabled' do
+ before do
+ stub_feature_flags(ci_enable_legacy_artifacts: false)
+ end
+
+ it 'does not return the job' do
+ is_expected.not_to include(job)
+ end
+ end
end
context 'when job has a job artifact archive' do
@@ -471,6 +481,14 @@ describe Ci::Build do
let(:build) { create(:ci_build, :legacy_artifacts) }
it { is_expected.to be_truthy }
+
+ context 'when ci_enable_legacy_artifacts feature flag is disabled' do
+ before do
+ stub_feature_flags(ci_enable_legacy_artifacts: false)
+ end
+
+ it { is_expected.to be_falsy }
+ end
end
end
end