Skip to content

Commit

Permalink
Add testcase for puppetlabs#665
Browse files Browse the repository at this point in the history
@keymone added information on how to reproduce his issue, so here's the
test case that would fail without his change.
  • Loading branch information
DavidS committed Oct 8, 2016
1 parent a296b85 commit ba67577
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/functions/getvar_spec.rb
Expand Up @@ -6,6 +6,8 @@
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'
Expand Down

0 comments on commit ba67577

Please sign in to comment.