From 389b8e15c9d546877f7fe26d83170924e7572f04 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Wed, 8 Mar 2023 12:39:43 +1000 Subject: [PATCH] DEV: Fix broken plugin specs because of bookmarkable changes (#231) Followup to 360d0dde650704a0f01fd6d8b525e933b1d7fcf2, this causes other plugin tests to fail because `DiscoursePluginRegistry.reset!` is a shotgun. We can use the more surgical version `DiscoursePluginRegistry.reset_register!(:bookmarkables)` instead. --- spec/lib/data_explorer_query_group_bookmarkable_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/data_explorer_query_group_bookmarkable_spec.rb b/spec/lib/data_explorer_query_group_bookmarkable_spec.rb index d2471b0..07ff90d 100644 --- a/spec/lib/data_explorer_query_group_bookmarkable_spec.rb +++ b/spec/lib/data_explorer_query_group_bookmarkable_spec.rb @@ -34,7 +34,7 @@ describe DataExplorerQueryGroupBookmarkable do register_test_bookmarkable(DataExplorerQueryGroupBookmarkable) end - after { DiscoursePluginRegistry.reset! } + after { DiscoursePluginRegistry.reset_register!(:bookmarkables) } # Groups 0 and 1 have access to the Query 1. let!(:query_group1) { Fabricate(:query_group, query: query1, group: group0) }