Commit 296a8781 by Your Name

add flagging tests to DiscussionContentView

parent ce2308b5
......@@ -2,6 +2,7 @@ describe "DiscussionContentView", ->
beforeEach ->
setFixtures
(
"""
<div class="discussion-post">
<header>
......@@ -19,7 +20,8 @@ describe "DiscussionContentView", ->
<div data-tooltip="pin this thread" data-role="thread-pin" class="admin-pin discussion-pin notpinned">
<i class="icon"></i><span class="pin-label">Pin Thread</span></div>
</div>
"""
""")
@thread = new Thread {
id: '01234567',
user_id: '567',
......@@ -53,4 +55,3 @@ describe "DiscussionContentView", ->
@thread.set("abuse_flaggers",temp_array)
@thread.unflagAbuse()
expect(@thread.get 'abuse_flaggers').toEqual []
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment