From 3775932c8a66a447cc179019d521e5f333cec790 Mon Sep 17 00:00:00 2001 From: Clay Sheppard Date: Mon, 28 Aug 2023 13:21:00 -0500 Subject: [PATCH] clear user session after each test (#19254) --- spec/rails_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 1da78d299bd..604f37872c6 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -80,6 +80,7 @@ Time.zone = @spec_time_zone User.unauthenticate! RequestStore[:application] = nil + Fakes::AuthenticationService.user_session = nil end # If you're not using ActiveRecord, or you'd prefer not to run each of your