Revision a5e07736
Added by Shlomi Zadok about 9 years ago
test/integration/report_test.rb | ||
---|---|---|
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
(cherry picked from commit 0b1dafbbef20e185a9e4fdda626796db4a6168bd)
Conflicts:
test/integration/report_test.rb