Improves note's unit test with the latest dropping
Improves note's unit test test_read_note_suspended_opener_and_comment by specifying "commented" type to second note comment (by default "opened") to support the latest dropping displaying notes comments.
This commit is contained in:
parent
f8fb850e8c
commit
00c0a943ea
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ class NotesControllerTest < ActionDispatch::IntegrationTest
|
||||||
def test_read_note_suspended_opener_and_comment
|
def test_read_note_suspended_opener_and_comment
|
||||||
note = create(:note)
|
note = create(:note)
|
||||||
create(:note_comment, :note => note, :author => create(:user, :suspended))
|
create(:note_comment, :note => note, :author => create(:user, :suspended))
|
||||||
create(:note_comment, :note => note)
|
create(:note_comment, :note => note, :event => "commented")
|
||||||
|
|
||||||
sidebar_browse_check :note_path, note.id, "notes/show"
|
sidebar_browse_check :note_path, note.id, "notes/show"
|
||||||
assert_select "div.note-comments ul li", :count => 1
|
assert_select "div.note-comments ul li", :count => 1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue