3 if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
4 describe 'test::hash', type: :class do
5 describe 'accepts hashes' do
12 describe value.inspect do
13 let(:params) {{ value: value }}
14 it { is_expected.to compile }
18 describe 'rejects other values' do
25 describe value.inspect do
26 let(:params) {{ value: value }}
27 it { is_expected.to compile.and_raise_error(/parameter 'value' expects a Stdlib::Compat::Hash/) }