Fix error on create bookmark for topic

This commit is contained in:
Martin Brennan
2020-03-13 13:33:57 +10:00
parent af92444948
commit dc02586d99
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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)