diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-01 06:08:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-01 06:08:46 +0300 |
commit | 0548fa357572b5c834613fe57b417777a3fda92f (patch) | |
tree | d3854ff39ff5c4695f34b186c9867abfee89e800 /spec/support_specs | |
parent | 83e25d14371953c18ac41b3a0cc27aadefd9bc69 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support_specs')
-rw-r--r-- | spec/support_specs/helpers/stub_feature_flags_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/support_specs/helpers/stub_feature_flags_spec.rb b/spec/support_specs/helpers/stub_feature_flags_spec.rb index a59d8a20a40..f90b4c9f50d 100644 --- a/spec/support_specs/helpers/stub_feature_flags_spec.rb +++ b/spec/support_specs/helpers/stub_feature_flags_spec.rb @@ -17,7 +17,7 @@ RSpec.describe StubFeatureFlags do # We inject dummy feature flag defintion # to ensure that we strong validate it's usage # as well - before(:all) do + before_all do Feature::Definition.definitions[dummy_feature_flag] = dummy_definition end @@ -154,6 +154,7 @@ RSpec.describe StubFeatureFlags do it { expect(let_it_be_var).to eq true } end + # rubocop: disable RSpec/BeforeAll context 'before_all variable' do before_all do @suite_var = Feature.enabled?(dummy_feature_flag) @@ -169,6 +170,7 @@ RSpec.describe StubFeatureFlags do it { expect(@suite_var).to eq true } end + # rubocop: enable RSpec/BeforeAll context 'with stub_feature_flags meta' do let(:var) { Feature.enabled?(dummy_feature_flag) } |