summaryrefslogtreecommitdiff
path: root/spec/functions
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2015-09-09 11:20:18 +0100
committerTP Honey <tphoney@users.noreply.github.com>2015-09-09 11:20:18 +0100
commit2a7a93ffb49b2ae63d4fd09982fd8c382c1f4b5a (patch)
tree772579a612c2df74e96b82a6588673da55cf34c2 /spec/functions
parent00b11c20c87c028d2206e444c321a8b43d7aa52b (diff)
parentf2f2db4795fc0e3b9387e1e6c003e8e75efde903 (diff)
Merge pull request #518 from logicminds/case_insensitive
accept any case of boolean strings
Diffstat (limited to 'spec/functions')
-rwxr-xr-xspec/functions/str2bool_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functions/str2bool_spec.rb b/spec/functions/str2bool_spec.rb
index 3b439b2..7d8c47c 100755
--- a/spec/functions/str2bool_spec.rb
+++ b/spec/functions/str2bool_spec.rb
@@ -10,13 +10,13 @@ describe 'str2bool' do
it { is_expected.to run.with_params('one').and_raise_error(Puppet::ParseError, /Unknown type of boolean given/) }
describe 'when testing values that mean "true"' do
- [ '1', 't', 'y', 'true', 'yes', true ].each do |value|
+ [ 'TRUE','1', 't', 'y', 'true', 'yes', true ].each do |value|
it { is_expected.to run.with_params(value).and_return(true) }
end
end
describe 'when testing values that mean "false"' do
- [ '', '0', 'f', 'n', 'false', 'no', false, 'undef', 'undefined' ].each do |value|
+ [ 'FALSE','', '0', 'f', 'n', 'false', 'no', false, 'undef', 'undefined' ].each do |value|
it { is_expected.to run.with_params(value).and_return(false) }
end
end