summaryrefslogtreecommitdiff
path: root/spec/unit/puppet/parser/functions/bool2str_spec.rb
diff options
context:
space:
mode:
authorRyan McKern <ryan.mckern@puppetlabs.com>2014-05-15 15:01:14 -0700
committerRyan McKern <ryan.mckern@puppetlabs.com>2014-05-15 15:01:14 -0700
commit93c4151edfedb28a0cafa60011c57eb6d76ca6be (patch)
tree5321e18a8badd91c72eb7f6a3b20d62cfe293e3f /spec/unit/puppet/parser/functions/bool2str_spec.rb
parent0761fcf0433b1c73ff9925d1b8fa20a618f28875 (diff)
(MODULES-905) Narrow the confinement in bool2str
Previously, bool2str() accepted a broad array of boolean values and bare strings, without any attempt to validate that the strings in any way resembled "true" or "false" (or any of the other values bool2num() accepts). This commit narrows the input confinement to TrueClass and FalseClass, which means that bool2str() will only interpolate strict boolean values now.
Diffstat (limited to 'spec/unit/puppet/parser/functions/bool2str_spec.rb')
0 files changed, 0 insertions, 0 deletions