From 413119517cca6a47f52d77b49ae3cab4cdaf9884 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Wed, 7 Apr 2021 18:09:45 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/spec_helper.rb | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'spec/spec_helper.rb') 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| -- cgit v1.2.3