summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Fisher <alex@linfratech.co.uk>2017-05-14 14:16:28 +0100
committerAlexander Fisher <alex@linfratech.co.uk>2017-07-11 10:32:57 +0100
commit2220810c4ad8ea22b2cdc58bc0b9c7392a388b01 (patch)
treef975f6cf1ee912fba196628750baccbeebc4fc22 /lib
parent5a17bf1c338c74bd6c8dbacc9a05b4cd501ecc23 (diff)
Fix filenames of two function spec tests
The tests weren't being run. Total tests increase from 2742 to 2769. Also fix 'when using a class extending String' test. It had been failing with... ``` RuntimeError: can't modify frozen AlsoString ```
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/functions/length.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/functions/length.rb b/lib/puppet/functions/length.rb
index 86e735c..5ebd455 100644
--- a/lib/puppet/functions/length.rb
+++ b/lib/puppet/functions/length.rb
@@ -3,7 +3,7 @@ Puppet::Functions.create_function(:length) do
dispatch :length do
param 'Variant[String,Array,Hash]', :value
end
- def length(value)
+ def length(value)
if value.is_a?(String)
result = value.length
elsif value.is_a?(Array) || value.is_a?(Hash)