Revision 0b1dafbb
Added by Shlomi Zadok about 9 years ago
test/integration/report_test.rb | ||
---|---|---|
visit report_path(@report)
|
||
assert page.has_selector?('h1', :text => @report.host.fqdn), "hostname was expected in the <h1> tag, but was not found"
|
||
end
|
||
|
||
test "delete a report redirects to reports index" do
|
||
visit report_path(@report)
|
||
first(:link, "Delete").click
|
||
assert_equal(current_path, reports_path)
|
||
end
|
||
end
|
Also available in: Unified diff
fixes #9469 - redirect to reports#index on destroy