From: Helen Campbell Date: Wed, 14 Dec 2016 14:37:54 +0000 (+0000) Subject: Fix for tests against PR-641 X-Git-Tag: 2.4.0~10^2 X-Git-Url: https://review.fuel-infra.org/gitweb?a=commitdiff_plain;h=253cb90b902d707a1f8c112400bf49cbaa39e42d;p=puppet-modules%2Fpuppetlabs-apt.git Fix for tests against PR-641 --- diff --git a/spec/defines/setting_spec.rb b/spec/defines/setting_spec.rb index 319074b..e1163a0 100644 --- a/spec/defines/setting_spec.rb +++ b/spec/defines/setting_spec.rb @@ -95,7 +95,11 @@ describe 'apt::setting' do context 'with priority=1.2' do let(:params) { default_params.merge({ :priority => 1.2 }) } - it { is_expected.to compile.and_raise_error(/input needs to be a String/) } + 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 end end