diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-15 21:11:45 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-09-15 21:11:45 +0300 |
commit | 7a15fb07cf363079c4c4683850ee131d80e75f75 (patch) | |
tree | 60932d6cd96a9df0678ec56eafe373ba8bff8beb /spec/models/ci/build_spec.rb | |
parent | f357b1fa2f6a1a204f1ab9070e8a64d717c8960c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models/ci/build_spec.rb')
-rw-r--r-- | spec/models/ci/build_spec.rb | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 8adbd27cd1c..149c0609799 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -735,18 +735,6 @@ RSpec.describe Ci::Build, feature_category: :continuous_integration, factory_def is_expected.to eq(1.day.since) end end - - context 'when update_chronic_duration is disabled' do - before do - stub_feature_flags(update_chronic_duration: false) - end - - it 'returns date after 1 day' do - freeze_time do - is_expected.to eq(1.day.since) - end - end - end end context 'when start_in is 1 week' do @@ -757,18 +745,6 @@ RSpec.describe Ci::Build, feature_category: :continuous_integration, factory_def is_expected.to eq(1.week.since) end end - - context 'when update_chronic_duration is disabled' do - before do - stub_feature_flags(update_chronic_duration: false) - end - - it 'returns date after 1 week' do - freeze_time do - is_expected.to eq(1.week.since) - end - end - end end end @@ -1099,18 +1075,6 @@ RSpec.describe Ci::Build, feature_category: :continuous_integration, factory_def is_expected.to be_nil end - - context 'when update_chronic_duration is disabled' do - before do - stub_feature_flags(update_chronic_duration: false) - end - - it 'assigns a valid duration' do - build.artifacts_expire_in = '7 days' - - is_expected.to be_within(10).of(7.days.to_i) - end - end end describe '#commit' do |