Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-04-07 21:09:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-04-07 21:09:45 +0300
commit413119517cca6a47f52d77b49ae3cab4cdaf9884 (patch)
tree046eb80cb92bb948cd49a99b7c34bf8dc6884c4f /spec/spec_helper.rb
parent40b78ea2b6f5f0ef730c2cd811911be3449562e6 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb18
1 files changed, 4 insertions, 14 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 84c38ca0ce2..a3925a0c0fb 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -338,20 +338,10 @@ RSpec.configure do |config|
RequestStore.clear!
end
- if ENV['SKIP_RSPEC_CONTEXT_WRAPPING']
- config.around(:example, :context_aware) do |example|
- # Wrap each example in it's own context to make sure the contexts don't
- # leak
- Gitlab::ApplicationContext.with_raw_context { example.run }
- end
- else
- config.around do |example|
- if [:controller, :request, :feature].include?(example.metadata[:type]) || example.metadata[:context_aware]
- Gitlab::ApplicationContext.with_raw_context { example.run }
- else
- example.run
- end
- end
+ config.around do |example|
+ # Wrap each example in it's own context to make sure the contexts don't
+ # leak
+ Gitlab::ApplicationContext.with_raw_context { example.run }
end
config.around do |example|