mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
DEV: fixes a flakey spec (#20721)
This commit is contained in:
parent
184ce647ea
commit
c5e5b6d5ab
|
@ -5,7 +5,12 @@ RSpec.describe BookmarksController do
|
|||
let(:bookmark_message) { Fabricate(:chat_message) }
|
||||
let(:bookmark_user) { current_user }
|
||||
|
||||
before { sign_in(current_user) }
|
||||
before do
|
||||
register_test_bookmarkable(Chat::MessageBookmarkable)
|
||||
sign_in(current_user)
|
||||
end
|
||||
|
||||
after { DiscoursePluginRegistry.reset_register!(:bookmarkables) }
|
||||
|
||||
context "when bookmarking a chat message" do
|
||||
describe "#create" do
|
||||
|
|
Loading…
Reference in New Issue
Block a user