summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorHunter Haugen <hunter@puppet.com>2017-04-28 15:48:56 -0700
committerHelen Campbell <helen@puppetlabs.com>2017-05-09 12:56:30 +0100
commit32e5a87bb3b8c1d0fabc1e8c2687e4a750173cb5 (patch)
tree650626d8705a4d2f39993c0dfbeccd5037c73c57 /spec
parent9244c67206363f8e887531b164fc24cef729f3d8 (diff)
(PE-20308) Also fix defined type strings & references
Diffstat (limited to 'spec')
-rwxr-xr-xspec/functions/defined_with_params_spec.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/functions/defined_with_params_spec.rb b/spec/functions/defined_with_params_spec.rb
index 775fa74..491a03b 100755
--- a/spec/functions/defined_with_params_spec.rb
+++ b/spec/functions/defined_with_params_spec.rb
@@ -62,5 +62,7 @@ describe 'defined_with_params' do
end
it { is_expected.to run.with_params('Test::Deftype[foo]', {}).and_return(true) }
it { is_expected.to run.with_params('Test::Deftype[bar]', {}).and_return(false) }
+ it { is_expected.to run.with_params(Puppet::Resource.new('Test::Deftype[foo]'), {}).and_return(true) }
+ it { is_expected.to run.with_params(Puppet::Resource.new('Test::Deftype[bar]'), {}).and_return(false) }
end
end