diff options
author | Adrien Thebo <git@somethingsinistral.net> | 2013-03-18 15:37:56 -0700 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-03-18 15:37:56 -0700 |
commit | c0a0682706ccc1ed8c927c5529c08ffe2a7a4a5e (patch) | |
tree | 82b093297dfec93464ee11ccebc16a4d7cf17216 /spec/unit/puppet | |
parent | c12d3d7d51da4107f5e0b63aacc4fcb2c5923a0b (diff) | |
parent | 4c695ede384501b9c516cc53bdfc6b547a6e5ea2 (diff) | |
download | puppet-stdlib-c0a0682706ccc1ed8c927c5529c08ffe2a7a4a5e.tar.gz puppet-stdlib-c0a0682706ccc1ed8c927c5529c08ffe2a7a4a5e.tar.bz2 |
Merge branch '2.x' into 3.x
Diffstat (limited to 'spec/unit/puppet')
-rw-r--r-- | spec/unit/puppet/parser/functions/str2bool_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/puppet/parser/functions/str2bool_spec.rb b/spec/unit/puppet/parser/functions/str2bool_spec.rb index 2782bbe..ef6350f 100644 --- a/spec/unit/puppet/parser/functions/str2bool_spec.rb +++ b/spec/unit/puppet/parser/functions/str2bool_spec.rb @@ -21,4 +21,11 @@ describe "the str2bool function" do result = scope.function_str2bool(["undef"]) result.should(eq(false)) end + + it "should return the boolean it was called with" do + result = scope.function_str2bool([true]) + result.should(eq(true)) + result = scope.function_str2bool([false]) + result.should(eq(false)) + end end |