summaryrefslogtreecommitdiff
path: root/spec/functions/defined_with_params_spec.rb
diff options
context:
space:
mode:
authorTP Honey <tphoney@users.noreply.github.com>2016-06-30 11:47:00 +0100
committerGitHub <noreply@github.com>2016-06-30 11:47:00 +0100
commit6bab96ec26c7ae7350717a0b5884d26a03e3b9ac (patch)
tree63b7caabab0694c85221c2e8f951e00665d3f5f5 /spec/functions/defined_with_params_spec.rb
parent70d543e66a9a0fdc670004784f4864e7a04dc4dc (diff)
parent3f86e3a731b9e1be943a55fa12bd5e32716a20ef (diff)
Merge pull request #615 from DavidS/modules-3543-update-tests-and-function
(MODULES-3543) Fixup defined_with_params to work on all puppet versions
Diffstat (limited to 'spec/functions/defined_with_params_spec.rb')
-rwxr-xr-xspec/functions/defined_with_params_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/functions/defined_with_params_spec.rb b/spec/functions/defined_with_params_spec.rb
index e00c423..e2f3abe 100755
--- a/spec/functions/defined_with_params_spec.rb
+++ b/spec/functions/defined_with_params_spec.rb
@@ -26,10 +26,10 @@ describe 'defined_with_params' do
describe 'when passing undef values' do
let :pre_condition do
- 'file { "/tmp/a": }'
+ 'file { "/tmp/a": ensure => present }'
end
it { is_expected.to run.with_params('File[/tmp/a]', {}).and_return(true) }
- it { is_expected.to run.with_params('File[/tmp/a]', { 'owner' => :undef }).and_return(true) }
+ it { is_expected.to run.with_params('File[/tmp/a]', { 'ensure' => 'present', 'owner' => :undef }).and_return(true) }
end
end