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
Merge pull request #216 from genome-vendor/master
[puppet-modules/puppetlabs-apt.git]
/
spec
/
defines
/
pin_spec.rb
diff --git
a/spec/defines/pin_spec.rb
b/spec/defines/pin_spec.rb
index 179a2f3ac5bcf48e7bfc80b67c54334f76da093b..f1ca43733b592be67de179393c80249ae2b43f9b 100644
(file)
--- a/
spec/defines/pin_spec.rb
+++ b/
spec/defines/pin_spec.rb
@@
-1,5
+1,6
@@
require 'spec_helper'
describe 'apt::pin', :type => :define do
require 'spec_helper'
describe 'apt::pin', :type => :define do
+ let(:facts) { { :lsbdistid => 'Debian' } }
let(:title) { 'my_pin' }
let :default_params do
let(:title) { 'my_pin' }
let :default_params do
@@
-12,21
+13,21
@@
describe 'apt::pin', :type => :define do
}
end
}
end
- [
+ [
{ :params => {},
:content => "# my_pin\nExplanation: : my_pin\nPackage: *\nPin: release a=my_pin\nPin-Priority: 0\n"
},
{
:params => {
{ :params => {},
:content => "# my_pin\nExplanation: : my_pin\nPackage: *\nPin: release a=my_pin\nPin-Priority: 0\n"
},
{
:params => {
- :packages => 'apache',
+ :packages => 'apache',
:priority => '1'
},
:content => "# my_pin\nExplanation: : my_pin\nPackage: apache\nPin: release a=my_pin\nPin-Priority: 1\n"
},
{
:params => {
:priority => '1'
},
:content => "# my_pin\nExplanation: : my_pin\nPackage: apache\nPin: release a=my_pin\nPin-Priority: 1\n"
},
{
:params => {
- :order => 50,
- :packages => 'apache',
+ :order => 50,
+ :packages => 'apache',
:priority => '1'
},
:content => "# my_pin\nExplanation: : my_pin\nPackage: apache\nPin: release a=my_pin\nPin-Priority: 1\n"
:priority => '1'
},
:content => "# my_pin\nExplanation: : my_pin\nPackage: apache\nPin: release a=my_pin\nPin-Priority: 1\n"
@@
-60,7
+61,7
@@
describe 'apt::pin', :type => :define do
:priority => '1',
:origin => 'ftp.de.debian.org'
},
:priority => '1',
:origin => 'ftp.de.debian.org'
},
- :content => "# my_pin\nExplanation: : my_pin\nPackage: *\nPin: origin
\"ftp.de.debian.org\"
\nPin-Priority: 1\n"
+ :content => "# my_pin\nExplanation: : my_pin\nPackage: *\nPin: origin
ftp.de.debian.org
\nPin-Priority: 1\n"
},
{
:params => {
},
{
:params => {