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 'succeeds when comparing a string and a string' do
18 is_expected.to run.with_params('hello world', String).and_return(true)
21 it 'fails when comparing an integer and a string' do
22 is_expected.to run.with_params(5, String).and_return(false)
25 it 'suceeds when comparing an UTF8 and double byte characters' do
26 is_expected.to run.with_params('このテキスト', String).and_return(true)
27 is_expected.to run.with_params('ŧћịś ŧêχŧ', String).and_return(true)