diff --git a/plugins/chat/spec/requests/core_ext/users_controller_spec.rb b/plugins/chat/spec/requests/core_ext/users_controller_spec.rb index b7ff5445fd2..d6cbe07224a 100644 --- a/plugins/chat/spec/requests/core_ext/users_controller_spec.rb +++ b/plugins/chat/spec/requests/core_ext/users_controller_spec.rb @@ -35,6 +35,8 @@ describe UsersController do sign_in(current_user) end + after { DiscoursePluginRegistry.reset_register!(:bookmarkables) } + it "does not return any unread notifications for chat bookmarks that the user no longer has access to" do bookmark_with_reminder = Fabricate(:bookmark, user: current_user, bookmarkable: bookmark_message)