diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-16 21:25:58 +0300 |
commit | a5f4bba440d7f9ea47046a0a561d49adf0a1e6d4 (patch) | |
tree | fb69158581673816a8cd895f9d352dcb3c678b1e /spec/models/operations/feature_flag_spec.rb | |
parent | d16b2e8639e99961de6ddc93909f3bb5c1445ba1 (diff) |
Add latest changes from gitlab-org/gitlab@14-0-stable-eev14.0.0-rc42
Diffstat (limited to 'spec/models/operations/feature_flag_spec.rb')
-rw-r--r-- | spec/models/operations/feature_flag_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/models/operations/feature_flag_spec.rb b/spec/models/operations/feature_flag_spec.rb index d5b3c7a8582..55682e12642 100644 --- a/spec/models/operations/feature_flag_spec.rb +++ b/spec/models/operations/feature_flag_spec.rb @@ -181,7 +181,7 @@ RSpec.describe Operations::FeatureFlag do end context 'when the feature flag is active and all scopes are inactive' do - let!(:feature_flag) { create(:operations_feature_flag, active: true) } + let!(:feature_flag) { create(:operations_feature_flag, :legacy_flag, active: true) } it 'returns the flag' do feature_flag.default_scope.update!(active: false) @@ -199,7 +199,7 @@ RSpec.describe Operations::FeatureFlag do end context 'when the feature flag is inactive and all scopes are active' do - let!(:feature_flag) { create(:operations_feature_flag, active: false) } + let!(:feature_flag) { create(:operations_feature_flag, :legacy_flag, active: false) } it 'does not return the flag' do feature_flag.default_scope.update!(active: true) @@ -221,7 +221,7 @@ RSpec.describe Operations::FeatureFlag do end context 'when the feature flag is active and all scopes are inactive' do - let!(:feature_flag) { create(:operations_feature_flag, active: true) } + let!(:feature_flag) { create(:operations_feature_flag, :legacy_flag, active: true) } it 'does not return the flag' do feature_flag.default_scope.update!(active: false) @@ -239,7 +239,7 @@ RSpec.describe Operations::FeatureFlag do end context 'when the feature flag is inactive and all scopes are active' do - let!(:feature_flag) { create(:operations_feature_flag, active: false) } + let!(:feature_flag) { create(:operations_feature_flag, :legacy_flag, active: false) } it 'returns the flag' do feature_flag.default_scope.update!(active: true) |