3 if ENV["FUTURE_PARSER"] == 'yes'
5 pending 'teach rspec-puppet to load future-only functions under 3.7.5' do
6 it { is_expected.not_to eq(nil) }
11 if Puppet.version.to_f >= 4.0
13 it { is_expected.not_to eq(nil) }
14 it { is_expected.to run.with_params().and_raise_error(ArgumentError) }
15 it { is_expected.to run.with_params('', '').and_raise_error(ArgumentError) }
17 it 'gives the type of a string' do
18 expect(subject.call({}, 'hello world')).to be_kind_of(Puppet::Pops::Types::PStringType)
21 it 'gives the type of an integer' do
22 expect(subject.call({}, 5)).to be_kind_of(Puppet::Pops::Types::PIntegerType)