From 0cec84206e0776d3c96eebb7dbff4a91ba6c367c Mon Sep 17 00:00:00 2001 From: Daniel Waterworth Date: Fri, 9 Jun 2023 13:53:21 -0500 Subject: [PATCH] DEV: Fix interactions between tests via plugin svg sprite cache (#22047) --- spec/models/theme_field_spec.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/spec/models/theme_field_spec.rb b/spec/models/theme_field_spec.rb index 412d09774d0..ba2479d0517 100644 --- a/spec/models/theme_field_spec.rb +++ b/spec/models/theme_field_spec.rb @@ -3,7 +3,12 @@ RSpec.describe ThemeField do fab!(:theme) { Fabricate(:theme) } - before { ThemeJavascriptCompiler.disable_terser! } + + before do + SvgSprite.clear_plugin_svg_sprite_cache! + ThemeJavascriptCompiler.disable_terser! + end + after { ThemeJavascriptCompiler.enable_terser! } describe "scope: find_by_theme_ids" do