summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schmitt <david@black.co.at>2016-10-08 20:06:32 +0100
committerDavid Schmitt <david@black.co.at>2016-10-09 22:03:32 +0100
commit729e076f1d5eee87c22fee1253dd6cac039f8509 (patch)
treea053adedae452a346847dbc36ede6bf2c28d18b8
parentbec521e6b79dd612a73e742d1cb6371e17ade1a9 (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-xspec/functions/getvar_spec.rb2
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'