summaryrefslogtreecommitdiff
path: root/lib/puppet/parser/functions/is_array.rb
diff options
context:
space:
mode:
authorJeff McCune <jeff@puppetlabs.com>2012-10-24 16:59:43 -0700
committerMatthaus Owens <matthaus@puppetlabs.com>2012-10-24 17:23:42 -0700
commitba70a3885af452aea72d408f447c5bc7fd8bf0c0 (patch)
treeb65f65784797081dbf8dd51a70546baaaf64dd9f /lib/puppet/parser/functions/is_array.rb
parent4442f1edb5c3566e832b3b10ac6181793d7502e5 (diff)
downloadpuppet-stdlib-ba70a3885af452aea72d408f447c5bc7fd8bf0c0.tar.gz
puppet-stdlib-ba70a3885af452aea72d408f447c5bc7fd8bf0c0.tar.bz2
(maint) Clear all facts before each example
Without this patch example groups must explicitly call `Facter.clear` to clear any cached values between examples. This is a problem because this behavior is not the concern of the example groups, the behavior is the concern of the spec_helper or whatever facility we have in place to initialize the system for testing. This patch fixes the problem by duplicating the logic in the Facter spec_helper to ensure facts are cleared out before each example. This patch requires the example groups to explicitly load the facts they require if the fact name does not match the filename.
Diffstat (limited to 'lib/puppet/parser/functions/is_array.rb')
0 files changed, 0 insertions, 0 deletions