From bbd9e2c915c46920ceb51376db19599cbf9ba836 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Thu, 3 Dec 2020 15:09:46 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/spec_helper.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'spec/spec_helper.rb') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 55ee846090f..688deb78020 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -332,6 +332,13 @@ RSpec.configure do |config| Gitlab::WithRequestStore.with_request_store { example.run } end + config.before(:example, :request_store) do + # Clear request store before actually starting the spec (the + # `around` above will have the request store enabled for all + # `before` blocks) + RequestStore.clear! + end + config.around do |example| # Wrap each example in it's own context to make sure the contexts don't # leak -- cgit v1.2.3