diff options
author | Hunter Haugen <hunter@puppet.com> | 2017-04-28 15:48:56 -0700 |
---|---|---|
committer | Helen Campbell <helen@puppetlabs.com> | 2017-05-09 12:56:30 +0100 |
commit | 32e5a87bb3b8c1d0fabc1e8c2687e4a750173cb5 (patch) | |
tree | 650626d8705a4d2f39993c0dfbeccd5037c73c57 /spec/functions | |
parent | 9244c67206363f8e887531b164fc24cef729f3d8 (diff) |
(PE-20308) Also fix defined type strings & references
Diffstat (limited to 'spec/functions')
-rwxr-xr-x | spec/functions/defined_with_params_spec.rb | 2 |
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 |