fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
assert page.has_content? "Your report has been registered sucessfully"
assert_equal note, Issue.last.reportable
assert page.has_content? "Your report has been registered sucessfully"
assert_equal note, Issue.last.reportable
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
fill_in "report_details", :with => "This is spam"
assert_difference "Issue.count", 1 do
click_on "Create Report"
assert page.has_content? "Your report has been registered sucessfully"
assert_equal note, Issue.last.reportable
assert page.has_content? "Your report has been registered sucessfully"
assert_equal note, Issue.last.reportable