2 if Puppet::Util::Package.versioncmp(Puppet.version, '6.0.0') < 0
4 it { is_expected.not_to eq(nil) }
6 describe 'signature validation in puppet3', :unless => RSpec.configuration.puppet_future do
7 it { is_expected.to run.with_params.and_raise_error(Puppet::ParseError, %r{wrong number of arguments}i) }
9 pending('Current implementation ignores parameters after the first.')
10 is_expected.to run.with_params(1, 2).and_raise_error(Puppet::ParseError, %r{wrong number of arguments}i)
14 describe 'signature validation in puppet4', :if => RSpec.configuration.puppet_future do
16 pending 'the puppet 6 implementation'
17 is_expected.to run.with_params.and_raise_error(ArgumentError)
20 pending 'the puppet 6 implementation'
21 is_expected.to run.with_params(1, 2).and_raise_error(ArgumentError)
24 pending 'the puppet 6 implementation'
25 is_expected.to run.with_params([]).and_raise_error(ArgumentError)
28 pending 'the puppet 6 implementation'
29 is_expected.to run.with_params({}).and_raise_error(ArgumentError)
32 pending 'the puppet 6 implementation'
33 is_expected.to run.with_params(true).and_raise_error(ArgumentError)
37 it { is_expected.to run.with_params(-34).and_return(34) }
38 it { is_expected.to run.with_params('-34').and_return(34) }
39 it { is_expected.to run.with_params(34).and_return(34) }
40 it { is_expected.to run.with_params('34').and_return(34) }
41 it { is_expected.to run.with_params(-34.5).and_return(34.5) }
42 it { is_expected.to run.with_params('-34.5').and_return(34.5) }
43 it { is_expected.to run.with_params(34.5).and_return(34.5) }
44 it { is_expected.to run.with_params('34.5').and_return(34.5) }