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)
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
end
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
end
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
end
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
end