diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-06-20 14:10:13 +0300 |
commit | 0ea3fcec397b69815975647f5e2aa5fe944a8486 (patch) | |
tree | 7979381b89d26011bcf9bdc989a40fcc2f1ed4ff /spec/spec_helper.rb | |
parent | 72123183a20411a36d607d70b12d57c484394c8e (diff) |
Add latest changes from gitlab-org/gitlab@15-1-stable-eev15.1.0-rc42
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index e49e82f6ab6..b39153e79fc 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -53,8 +53,10 @@ end require 'rainbow/ext/string' Rainbow.enabled = false -require_relative('../ee/spec/spec_helper') if Gitlab.ee? +# Require JH first because we need override some EE methods with JH methods, +# if we load EE first, we can't find JH modules in prepend_mod method require_relative('../jh/spec/spec_helper') if Gitlab.jh? +require_relative('../ee/spec/spec_helper') if Gitlab.ee? # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. @@ -256,16 +258,6 @@ RSpec.configure do |config| end config.around do |example| - if example.metadata.fetch(:stub_feature_flags, true) - # It doesn't make sense for this to default to enabled as we only plan to - # use this temporarily to override an environment variable but eventually - # we'll just use the environment variable value when we've completed the - # gradual rollout. This stub must happen in around block as there are other - # around blocks in tests that will run before this and get the wrong - # database connection. - stub_feature_flags(force_no_sharing_primary_model: false) - end - example.run end @@ -308,10 +300,6 @@ RSpec.configure do |config| # See https://gitlab.com/gitlab-org/gitlab/-/issues/33867 stub_feature_flags(file_identifier_hash: false) - # The following `vue_issues_list` stub can be removed - # once the Vue issues page has feature parity with the current Haml page - stub_feature_flags(vue_issues_list: false) - # Disable `main_branch_over_master` as we migrate # from `master` to `main` accross our codebase. # It's done in order to preserve the concistency in tests |