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:
parent
a684897468
commit
389b8e15c9
|
@ -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) }
|
||||||
|
|
Loading…
Reference in New Issue