zeninstall/src/autogen/test/system/anshosts_test.rb

44 lines
1011 B
Ruby

require "application_system_test_case"
class AnshostsTest < ApplicationSystemTestCase
setup do
@anshost = anshosts(:one)
end
test "visiting the index" do
visit anshosts_url
assert_selector "h1", text: "Anshosts"
end
test "should create anshost" do
visit anshosts_url
click_on "New anshost"
fill_in "Hostname", with: @anshost.hostname
fill_in "Var", with: @anshost.var
click_on "Create Anshost"
assert_text "Anshost was successfully created"
click_on "Back"
end
test "should update Anshost" do
visit anshost_url(@anshost)
click_on "Edit this anshost", match: :first
fill_in "Hostname", with: @anshost.hostname
fill_in "Var", with: @anshost.var
click_on "Update Anshost"
assert_text "Anshost was successfully updated"
click_on "Back"
end
test "should destroy Anshost" do
visit anshost_url(@anshost)
click_on "Destroy this anshost", match: :first
assert_text "Anshost was successfully destroyed"
end
end