mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
DEV: Fix another chat bookmark spec (#20578)
Followup to a252022117350829dabd80c463cb8c8984da6548
This commit is contained in:
parent
cf0a0945e4
commit
b62d44b40a
@ -499,6 +499,10 @@ describe ChatMessage do
|
|||||||
end
|
end
|
||||||
|
|
||||||
describe "bookmarks" do
|
describe "bookmarks" do
|
||||||
|
before { register_test_bookmarkable(ChatMessageBookmarkable) }
|
||||||
|
|
||||||
|
after { DiscoursePluginRegistry.reset_register!(:bookmarkables) }
|
||||||
|
|
||||||
it "destroys bookmarks" do
|
it "destroys bookmarks" do
|
||||||
message_1 = Fabricate(:chat_message)
|
message_1 = Fabricate(:chat_message)
|
||||||
bookmark_1 = Fabricate(:bookmark, bookmarkable: message_1)
|
bookmark_1 = Fabricate(:bookmark, bookmarkable: message_1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user