Skip to content

Commit

Permalink
Fix for tests against PR-641
Browse files Browse the repository at this point in the history
  • Loading branch information
Helen Campbell committed Dec 14, 2016
1 parent 71305ef commit 253cb90
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/defines/setting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,11 @@

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

Expand Down

0 comments on commit 253cb90

Please sign in to comment.