- let(:params) { default_params.merge({ :priority => 1.2 }) }
- if Puppet.version.to_f >= 4.0 || ENV["FUTURE_PARSER"] == 'yes'
- it { is_expected.to compile.and_raise_error(/input needs to be a String/) }
- else
- it { is_expected.to compile.and_raise_error(/priority must be an integer or a zero-padded integer/) }
- end
+ let(:params) { default_params.merge(priority: 1.2) }
+
+ it { is_expected.to compile.and_raise_error(%r{expects a value of type}) }