diff --git a/common/static/coffee/spec/discussion/view/discussion_content_view_spec.coffee b/common/static/coffee/spec/discussion/view/discussion_content_view_spec.coffee index c5d0482ef1..217f441803 100644 --- a/common/static/coffee/spec/discussion/view/discussion_content_view_spec.coffee +++ b/common/static/coffee/spec/discussion/view/discussion_content_view_spec.coffee @@ -43,4 +43,14 @@ describe "DiscussionContentView", -> it 'is tied to the model', -> expect(@view.model).toBeDefined(); + it 'can be flagged for abuse', -> + @thread.flagAbuse() + expect(@thread.get 'abuse_flaggers').toEqual ['123', '567'] + + it 'can be unflagged for abuse', -> + temp_array = [] + temp_array.push(window.user.get('id')) + @thread.set("abuse_flaggers",temp_array) + @thread.unflagAbuse() + expect(@thread.get 'abuse_flaggers').toEqual [] \ No newline at end of file