Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refactor facts to improve performance:
[puppet-modules/puppetlabs-apt.git]
/
spec
/
acceptance
/
force_spec.rb
diff --git
a/spec/acceptance/force_spec.rb
b/spec/acceptance/force_spec.rb
index 00572eae37d395929ab1970955e46b2a03305b2c..5f4dec3fc76487705b147c368a3563bf194da2e3 100644
(file)
--- a/
spec/acceptance/force_spec.rb
+++ b/
spec/acceptance/force_spec.rb
@@
-7,7
+7,7
@@
describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os
it 'should work with no errors' do
pp = <<-EOS
include apt
it 'should work with no errors' do
pp = <<-EOS
include apt
- apt::force { 'vim':
release => false,
}
+ apt::force { 'vim': }
EOS
shell('apt-get remove -y vim')
EOS
shell('apt-get remove -y vim')
@@
-41,7
+41,7
@@
describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os
it 'should work with no errors' do
pp = <<-EOS
include apt
it 'should work with no errors' do
pp = <<-EOS
include apt
- apt::force { 'vim': version => '1.1.1'
, release => false,
}
+ apt::force { 'vim': version => '1.1.1' }
EOS
shell('apt-get remove -y vim')
EOS
shell('apt-get remove -y vim')
@@
-59,7
+59,7
@@
describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os
it 'should work with no errors' do
pp = <<-EOS
include apt
it 'should work with no errors' do
pp = <<-EOS
include apt
- apt::force { '
vim': release => false,
timeout => '1' }
+ apt::force { '
ocaml':
timeout => '1' }
EOS
shell('apt-get clean')
EOS
shell('apt-get clean')
@@
-68,7
+68,7
@@
describe 'apt::force define', :unless => UNSUPPORTED_PLATFORMS.include?(fact('os
end
end
end
end
- describe package('
vim
') do
+ describe package('
ocaml
') do
it { should_not be_installed }
end
end
it { should_not be_installed }
end
end