Revision 6a07eb81
Added by Tom Caspy over 9 years ago
test/unit/hostgroup_test.rb | ||
---|---|---|
assert_equal "#{hostgroup.id}-a-b", hostgroup.to_param
|
||
end
|
||
|
||
test "clone should clone config groups as well" do
|
||
group = FactoryGirl.create(:hostgroup, :name => 'a')
|
||
config_group = ConfigGroup.create!(:name => 'Blah')
|
||
group.config_groups << config_group
|
||
group.save
|
||
|
||
cloned = group.clone("new_name")
|
||
assert cloned.config_groups.include?(config_group)
|
||
end
|
||
|
||
end
|
Also available in: Unified diff
fixes #9274 - hostgroup#clone clones config groups