diff options
author | Helen <helen@puppetlabs.com> | 2016-10-10 14:16:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-10 14:16:06 +0100 |
commit | 59553c8c2ec1f0732c4383ab31ab8b7a05da544e (patch) | |
tree | a053adedae452a346847dbc36ede6bf2c28d18b8 /spec | |
parent | 9debb12b2d6190045a11d2277c7b730ac5732f96 (diff) | |
parent | 729e076f1d5eee87c22fee1253dd6cac039f8509 (diff) |
Merge pull request #668 from DavidS/final-cleanups
Final cleanups
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/functions/getvar_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/functions/getvar_spec.rb b/spec/functions/getvar_spec.rb index 6ab137e..54f1842 100755 --- a/spec/functions/getvar_spec.rb +++ b/spec/functions/getvar_spec.rb @@ -6,6 +6,8 @@ describe 'getvar' do it { is_expected.to run.with_params('one', 'two').and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } it { is_expected.to run.with_params().and_raise_error(Puppet::ParseError, /wrong number of arguments/i) } + it { is_expected.to run.with_params('$::foo').and_return(nil) } + context 'given variables in namespaces' do let(:pre_condition) { <<-'ENDofPUPPETcode' |