diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-13 00:08:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-13 00:08:10 +0300 |
commit | a6b21afb09a4b91e47db93b2443205bd4eef84e6 (patch) | |
tree | 75914410f8e34a0fadc6d9998f84d20c7fedf075 /spec/spec_helper.rb | |
parent | 31f59b55c63f6a7add79c5987731387ae3a4f7ab (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index eb7796cb55a..4d66784d943 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -152,7 +152,7 @@ RSpec.configure do |config| # Admin controller specs get auto admin mode enabled since they are # protected by the 'EnforcesAdminAuthentication' concern - metadata[:enable_admin_mode] = true if location =~ %r{(ee)?/spec/controllers/admin/} + metadata[:enable_admin_mode] = true if %r{(ee)?/spec/controllers/admin/}.match?(location) end config.define_derived_metadata(file_path: %r{(ee)?/spec/.+_docs\.rb\z}) do |metadata| |