diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-05 21:10:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-06-05 21:10:05 +0300 |
commit | 585c8dce43fd374a18e48e03c7ba8b5b96395b14 (patch) | |
tree | bc91d7a2ea940133a7a6ac323e0be9eb6f513282 /spec/spec_helper.rb | |
parent | 35cccb0c12024672d5a6e003fb0fb920fc9a323f (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |