Revision 647b971f
Added by Ondřej Pražák about 8 years ago
test/factories/host_related.rb | ||
---|---|---|
association :parent, :factory => :hostgroup
|
||
end
|
||
|
||
trait :with_environment do
|
||
environment
|
||
end
|
||
|
||
trait :with_puppetclass do
|
||
environment
|
||
puppetclasses { [ FactoryGirl.create(:puppetclass, :environments => [environment]) ] }
|
Also available in: Unified diff
Fixes #12936 - Host inherits attributes when hostgroup is AR object
(cherry picked from commit d7110d54ad51a85eadde8283606e88cf01de8b19)