A platform for community discussion. Free, open, simple.
DEV: Fix interactions between tests via plugin svg sprite cache (#22047)
Daniel Waterworth0cec84206e07
diff --git a/spec/models/theme_field_spec.rb b/spec/models/theme_field_spec.rbindex 412d09774d0..ba2479d0517 100644--- a/spec/models/theme_field_spec.rb+++ b/spec/models/theme_field_spec.rb@@ -3,7 +3,12 @@RSpec.describe ThemeField dofab!(: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