Project

General

Profile

Download (680 Bytes) Statistics
| Branch: | Tag: | Revision:
require 'test_helper'

class HostgroupTest < ActionDispatch::IntegrationTest

test "index page" do
assert_index_page(hostgroups_path,"Host Groups","New Host Group")
end

test "create new page" do
assert_new_button(hostgroups_path,"New Host Group",new_hostgroup_path)
fill_in "hostgroup_name", :with => "staging"
select "production", :from => "hostgroup_environment_id"
assert_submit_button(hostgroups_path)
assert page.has_link? 'staging'
end

test "edit page" do
visit hostgroups_path
click_link "db"
fill_in "hostgroup_name", :with => "db Old"
assert_submit_button(hostgroups_path)
assert page.has_link? 'db Old'
end

end
(14-14/32)