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.
This commit is contained in:
Martin Brennan 2023-03-08 12:39:43 +10:00 committed by GitHub
parent a684897468
commit 389b8e15c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ describe DataExplorerQueryGroupBookmarkable do
register_test_bookmarkable(DataExplorerQueryGroupBookmarkable) register_test_bookmarkable(DataExplorerQueryGroupBookmarkable)
end end
after { DiscoursePluginRegistry.reset! } after { DiscoursePluginRegistry.reset_register!(:bookmarkables) }
# Groups 0 and 1 have access to the Query 1. # Groups 0 and 1 have access to the Query 1.
let!(:query_group1) { Fabricate(:query_group, query: query1, group: group0) } let!(:query_group1) { Fabricate(:query_group, query: query1, group: group0) }