Skip to content

A platform for community discussion. Free, open, simple.

DEV: Clear serializers cache between tests (#34008)

Osama Sayegh26778dbd024f
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index eaf0837cd2e..a6370248650 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -190,6 +190,7 @@ module TestSetup
Middleware::AnonymousCache.disable_anon_cache
BlockRequestsMiddleware.allow_requests!
BlockRequestsMiddleware.current_example_location = nil
+ ApplicationSerializer.fragment_cache.clear
end
end