summaryrefslogtreecommitdiff
path: root/spec/functions
diff options
context:
space:
mode:
authorTomas Doran <tdoran@yelp.com>2013-11-19 18:38:12 +0000
committerAdrien Thebo <git@somethingsinistral.net>2014-01-15 11:03:33 -0800
commit735db82bef56bf939c971ab76a66647269d6ae35 (patch)
tree8ef7c123293b8bf020ad88326f6bc29d395a29fd /spec/functions
parent01c9c3c97998c220c41b386e64468a1efff37127 (diff)
Allow a single argument, rather than an array
Diffstat (limited to 'spec/functions')
-rw-r--r--spec/functions/ensure_packages_spec.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/functions/ensure_packages_spec.rb b/spec/functions/ensure_packages_spec.rb
index 6fd56d5..f6272af 100644
--- a/spec/functions/ensure_packages_spec.rb
+++ b/spec/functions/ensure_packages_spec.rb
@@ -13,8 +13,9 @@ describe 'ensure_packages' do
it 'requires an array' do
lambda { scope.function_ensure_packages([['foo']]) }.should_not raise_error
end
- it 'fails when given a string' do
- should run.with_params('foo').and_raise_error(Puppet::ParseError)
+
+ it 'accepts a single package name as a string' do
+ scope.function_ensure_packages(['foo'])
end
end