Revision 647b971f
Added by Ondřej Pražák about 8 years ago
test/unit/host_test.rb | ||
---|---|---|
|
||
assert_equal actual_attr['zzz_id'], 1111
|
||
end
|
||
|
||
test 'should add inherited attributes when hostgroup in attributes' do
|
||
hg = FactoryGirl.create(:hostgroup, :with_environment)
|
||
host = Host.new(:name => "test-host", :hostgroup => hg)
|
||
assert host.environment
|
||
end
|
||
end
|
||
|
||
describe 'rendering interface' do
|
Also available in: Unified diff
Fixes #12936 - Host inherits attributes when hostgroup is AR object
(cherry picked from commit d7110d54ad51a85eadde8283606e88cf01de8b19)