]> gitweb.fluxo.info Git - puppet-stdlib.git/commit
Add spec test for validate_bool function
authorJeff McCune <jeff@puppetlabs.com>
Fri, 3 Jun 2011 18:41:20 +0000 (11:41 -0700)
committerJeff McCune <jeff@puppetlabs.com>
Fri, 3 Jun 2011 18:41:20 +0000 (11:41 -0700)
commit20b6c24186b6dd9d3d81524499b80f26b1c6c8eb
treeace4fe1e49dc7460c2f9623f38ec2ac791cdf576
parentb9f1bb6a63c5c06ce5b4e147dbca4ef505f02a25
Add spec test for validate_bool function

This is an interesting spec test for module developers.
It illustrates how to cause Puppet to test the function
from the Puppet DSL rather than the Ruby DSL, fully
exercising the system from the perspective of the end
user.

(Note how Puppet[:code] is set, then the scope reset, then
the compile method called.)

Paired-with: Dan Bode <dan@puppetlabs.com>
spec/unit/puppet/parser/functions/validate_bool_spec.rb [new file with mode: 0644]