mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
Ensure models don't leak between test through RequestStore, for example User.anonymous
This commit is contained in:
@@ -16,6 +16,11 @@ RSpec.configure do |config|
|
||||
RequestStore.clear!
|
||||
end
|
||||
|
||||
config.append_after(:all) do
|
||||
# Ensure models don't leak between test through RequestStore if it is used in after(:all)
|
||||
RequestStore.clear!
|
||||
end
|
||||
|
||||
# We don't want this to be reported on CI as it breaks the build
|
||||
unless ENV["CI"]
|
||||
config.append_after(:suite) do
|
||||
|
||||
Reference in New Issue
Block a user