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)
choose I18n.t("reports.new.categories.note.spam_label")
fill_in "report_details", :with => "This is spam"
choose I18n.t("reports.new.categories.note.spam_label")
fill_in "report_details", :with => "This is spam"
assert_equal note, Issue.last.reportable
assert_equal "moderator", Issue.last.assigned_role
assert_equal note, Issue.last.reportable
assert_equal "moderator", Issue.last.assigned_role
choose I18n.t("reports.new.categories.note.spam_label")
fill_in "report_details", :with => "This is spam"
choose I18n.t("reports.new.categories.note.spam_label")
fill_in "report_details", :with => "This is spam"
assert_equal note, Issue.last.reportable
assert_equal "moderator", Issue.last.assigned_role
assert_equal note, Issue.last.reportable
assert_equal "moderator", Issue.last.assigned_role