Merge pull request #650 from puppetlabs/hunner_msync
[puppet-modules/puppetlabs-apt.git] / spec / defines / setting_spec.rb
index 319074be2abb539f16daceeae86b7e37ac99f25c..e1163a0df894f6c3ce5709888e960ae62ae6d8ac 100644 (file)
@@ -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