mirror of
https://github.com/discourse/discourse.git
synced 2026-08-11 05:25:16 -05:00
Fix error on create bookmark for topic
This commit is contained in:
@@ -2376,6 +2376,7 @@ RSpec.describe TopicsController do
|
||||
post = create_post
|
||||
post2 = create_post(topic_id: post.topic_id)
|
||||
put "/t/#{post.topic_id}/bookmark.json"
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
bookmarks_for_topic = Bookmark.where(topic: post.topic, user: user)
|
||||
expect(bookmarks_for_topic.count).to eq(1)
|
||||
|
||||
Reference in New Issue
Block a user