diff options
author | David Schmitt <david@black.co.at> | 2016-10-08 20:06:32 +0100 |
---|---|---|
committer | David Schmitt <david@black.co.at> | 2016-10-09 22:03:32 +0100 |
commit | 729e076f1d5eee87c22fee1253dd6cac039f8509 (patch) | |
tree | a053adedae452a346847dbc36ede6bf2c28d18b8 | |
parent | bec521e6b79dd612a73e742d1cb6371e17ade1a9 (diff) |
Add testcase for #665
@keymone added information on how to reproduce his issue, so here's the
test case that would fail without his change.
-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' |