Revision 6b26002b
Added by Shlomi Zadok over 9 years ago
test/integration/host_test.rb | ||
---|---|---|
assert_equal(find('#host_subnet_id').find("option[value='#{Subnet.last.id}']").text, Subnet.last.to_label)
|
||
end
|
||
|
||
test "destroy redirects to hosts index" do
|
||
disable_orchestration # Avoid DNS errors
|
||
visit hosts_path
|
||
click_link @host.fqdn
|
||
assert page.has_link?("Delete", :href => "/hosts/#{@host.fqdn}")
|
||
first(:link, "Delete").click
|
||
assert_equal(current_path, hosts_path)
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
fixes #8638 - ensure that a redirect to hosts index after host destroy
(cherry picked from commit e29e550e8428a16276de9ac1f06efac9288eb361)