DEV: Fix interactions between tests via plugin svg sprite cache (#22047)

This commit is contained in:
Daniel Waterworth 2023-06-09 13:53:21 -05:00 committed by GitHub
parent bf07845714
commit 0cec84206e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -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