Commit 296a8781 by Your Name

add flagging tests to DiscussionContentView

parent ce2308b5
...@@ -2,6 +2,7 @@ describe "DiscussionContentView", -> ...@@ -2,6 +2,7 @@ describe "DiscussionContentView", ->
beforeEach -> beforeEach ->
setFixtures setFixtures
(
""" """
<div class="discussion-post"> <div class="discussion-post">
<header> <header>
...@@ -19,7 +20,8 @@ describe "DiscussionContentView", -> ...@@ -19,7 +20,8 @@ describe "DiscussionContentView", ->
<div data-tooltip="pin this thread" data-role="thread-pin" class="admin-pin discussion-pin notpinned"> <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> <i class="icon"></i><span class="pin-label">Pin Thread</span></div>
</div> </div>
""" """)
@thread = new Thread { @thread = new Thread {
id: '01234567', id: '01234567',
user_id: '567', user_id: '567',
...@@ -53,4 +55,3 @@ describe "DiscussionContentView", -> ...@@ -53,4 +55,3 @@ describe "DiscussionContentView", ->
@thread.set("abuse_flaggers",temp_array) @thread.set("abuse_flaggers",temp_array)
@thread.unflagAbuse() @thread.unflagAbuse()
expect(@thread.get 'abuse_flaggers').toEqual [] 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