Revision abd8f1d1
Added by Daniel Lobato Garcia over 9 years ago
test/functional/hosts_controller_test.rb | ||
---|---|---|
hosts.each { |host| assert_equal hostgroup, host.hostgroup }
|
||
end
|
||
|
||
|
||
test 'multiple hostgroup change by host names' do
|
||
@request.env['HTTP_REFERER'] = hosts_path
|
||
hosts = FactoryGirl.create_list(:host, 2)
|
||
... | ... | |
end
|
||
end
|
||
|
||
|
||
def setup_multiple_environments
|
||
setup_user_and_host "edit"
|
||
as_admin do
|
||
... | ... | |
end
|
||
|
||
private
|
||
|
||
def initialize_host
|
||
User.current = users(:admin)
|
||
disable_orchestration
|
Also available in: Unified diff
Refs #3809 - Remove cops for empty lines