Test showing note by suspended user with comment by other user
This commit is contained in:
parent
a9dcb66e7b
commit
090ccf2b63
1 changed files with 9 additions and 0 deletions
|
@ -161,6 +161,15 @@ class NotesControllerTest < ActionDispatch::IntegrationTest
|
|||
assert_select "div.note-comments ul li", :count => 0
|
||||
end
|
||||
|
||||
def test_read_note_suspended_opener_and_comment
|
||||
note = create(:note)
|
||||
create(:note_comment, :note => note, :author => create(:user, :suspended))
|
||||
create(:note_comment, :note => note)
|
||||
|
||||
sidebar_browse_check :note_path, note.id, "notes/show"
|
||||
assert_select "div.note-comments ul li", :count => 1
|
||||
end
|
||||
|
||||
def test_read_closed_note
|
||||
user = create(:user)
|
||||
closed_note = create(:note_with_comments, :closed, :closed_by => user, :comments_count => 2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue