We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93c4151 commit 557d38bCopy full SHA for 557d38b
spec/unit/puppet/parser/functions/bool2str_spec.rb
@@ -31,4 +31,16 @@
31
result = scope.function_bool2str([false])
32
result.class.should(eq(String))
33
end
34
+
35
+ it "should not accept a string" do
36
+ lambda { scope.function_bool2str(["false"]) }.should( raise_error(Puppet::ParseError))
37
+ end
38
39
+ it "should not accept a nil value" do
40
+ lambda { scope.function_bool2str([nil]) }.should( raise_error(Puppet::ParseError))
41
42
43
+ it "should not accept an undef" do
44
+ lambda { scope.function_bool2str([:undef]) }.should( raise_error(Puppet::ParseError))
45
46
0 commit comments