summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/empty_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/functions/empty_spec.rb')
-rwxr-xr-xspec/unit/parser/functions/empty_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/parser/functions/empty_spec.rb b/spec/unit/parser/functions/empty_spec.rb
index beaf45c..6c0fe69 100755
--- a/spec/unit/parser/functions/empty_spec.rb
+++ b/spec/unit/parser/functions/empty_spec.rb
@@ -18,4 +18,9 @@ describe "the empty function" do
lambda { @scope.function_empty([]) }.should( raise_error(Puppet::ParseError))
end
+ it "should return a true for an empty string" do
+ result = @scope.function_empty([''])
+ result.should(eq(true))
+ end
+
end