From 585c8dce43fd374a18e48e03c7ba8b5b96395b14 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Sat, 5 Jun 2021 18:10:05 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- spec/spec_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/spec_helper.rb') diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index bd9ba53c04c..1c852b85ff5 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -230,6 +230,10 @@ RSpec.configure do |config| Gitlab::Database.set_open_transactions_baseline end + config.append_before do + Thread.current[:current_example_group] = ::RSpec.current_example.metadata[:example_group] + end + config.append_after do Gitlab::Database.reset_open_transactions_baseline end -- cgit v1.2.3