def test_no_link_when_not_logged_in
note = create(:note_with_comments)
visit browse_note_path(note)
def test_no_link_when_not_logged_in
note = create(:note_with_comments)
visit browse_note_path(note)
- assert_equal 1, Issue.count
- assert Issue.last.reportable == note
+ assert_equal note, Issue.last.reportable
+ assert_equal "moderator", Issue.last.assigned_role
- assert_equal 1, Issue.count
- assert Issue.last.reportable == note
+ assert_equal note, Issue.last.reportable
+ assert_equal "moderator", Issue.last.assigned_role