summaryrefslogtreecommitdiff
path: root/lib/puppet
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppetlabs.com>2015-06-01 13:36:25 -0700
committerHunter Haugen <hunter@puppetlabs.com>2015-06-01 13:36:25 -0700
commita383705fdb133978e53503b7e01012367fac139d (patch)
treef044a3b9c65db499ae279a08328c18200201d094 /lib/puppet
parent1ae9058518d042ea81d42f46cebbb040b35a2b4d (diff)
parent18d4c21418e8d188ae659a92ff3a8df04d711f6a (diff)
downloadpuppet-stdlib-a383705fdb133978e53503b7e01012367fac139d.tar.gz
puppet-stdlib-a383705fdb133978e53503b7e01012367fac139d.tar.bz2
Merge pull request #464 from DavidS/modules-1882-convert-to-rspec
(MODULES-1882) convert function tests to rspec-puppet
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/parser/functions/member.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/parser/functions/member.rb b/lib/puppet/parser/functions/member.rb
index 88609ce..1e5b3de 100644
--- a/lib/puppet/parser/functions/member.rb
+++ b/lib/puppet/parser/functions/member.rb
@@ -44,7 +44,7 @@ would return: false
end
if arguments[1].is_a? String or arguments[1].is_a? Fixnum
- item = Array(arguments[1])
+ item = [arguments[1]]
else
item = arguments[1]
end