3 if Puppet::Util::Package.versioncmp(Puppet.version, '4.5.0') >= 0
4 describe 'Stdlib::Compat::Numeric' do
5 describe 'accepts numerics' do
16 describe value.inspect do
17 it { is_expected.to allow_value(value) }
22 describe 'rejects other values' do
23 [true, 'true', false, 'false', 'iAmAString', '1test', '1 test', 'test 1', 'test 1 test', {}, { 'key' => 'value' }, { 1 => 2 }, '', :undef, 'x'].each do |value|
24 describe value.inspect do
25 it { is_expected.not_to allow_value(value) }