DEV: Fix another chat bookmark spec (#20578)

Followup to a252022117
This commit is contained in:
Martin Brennan 2023-03-08 14:55:14 +10:00 committed by GitHub
parent cf0a0945e4
commit b62d44b40a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -499,6 +499,10 @@ describe ChatMessage do
end
describe "bookmarks" do
before { register_test_bookmarkable(ChatMessageBookmarkable) }
after { DiscoursePluginRegistry.reset_register!(:bookmarkables) }
it "destroys bookmarks" do
message_1 = Fabricate(:chat_message)
bookmark_1 = Fabricate(:bookmark, bookmarkable: message_1)