Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
71305ef
)
Fix for tests against PR-641
author
Helen Campbell
<helen@puppetlabs.com>
Wed, 14 Dec 2016 14:37:54 +0000
(14:37 +0000)
committer
Helen Campbell
<helen@puppetlabs.com>
Wed, 14 Dec 2016 15:01:57 +0000
(15:01 +0000)
spec/defines/setting_spec.rb
patch
|
blob
|
history
diff --git
a/spec/defines/setting_spec.rb
b/spec/defines/setting_spec.rb
index 319074be2abb539f16daceeae86b7e37ac99f25c..e1163a0df894f6c3ce5709888e960ae62ae6d8ac 100644
(file)
--- 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