it"update information of comment thread and mark thread as read"do
it"update information of comment thread and mark thread as read for owner user"do
thread=CommentThread.first
put"/api/v1/threads/#{thread.id}",body: "new body",title: "new title",commentable_id: "new_commentable_id",thread_type: "question",read: true,requested_user_id: thread.author.id
it"update information of comment thread and mark thread as read for non-owner user"do
thread=CommentThread.first
thread=CommentThread.first
user=create_test_user(42)
user=create_test_user(42)
put"/api/v1/threads/#{thread.id}",body: "new body",title: "new title",commentable_id: "new_commentable_id",thread_type: "question",read: true,user_id: user.id
put"/api/v1/threads/#{thread.id}",body: "new body",title: "new title",commentable_id: "new_commentable_id",thread_type: "question",read: true,requested_user_id: user.id