summaryrefslogtreecommitdiff
path: root/spec/functions/getvar_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/functions/getvar_spec.rb')
-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'