Revision 9f777254
Added by Imri Zvik about 8 years ago
test/unit/provisioning_template_test.rb | ||
---|---|---|
:hostgroup_id => @hg3.id,
|
||
:environment_id => @ev3.id}).name
|
||
end
|
||
|
||
test "should call build_pxe_default with allowed_helpers containing the default helpers" do
|
||
TemplatesController.any_instance.expects(:render_safe).with(anything, includes(*Foreman::Renderer::ALLOWED_GENERIC_HELPERS), anything).returns(true)
|
||
ProvisioningTemplate.build_pxe_default(TemplatesController.new)
|
||
end
|
||
end
|
||
end
|
Also available in: Unified diff
Fixes #10592 - Add tests to validate the allowed_helpers passed into the renderer in ProvisioningTemplate.build_pxe_default contains the generic list