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
Add lsbdistid facts where appropriate.
[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 a4cb1e26e3ad74f0ef67a58b52af2f9119278aa9..7537251dded2234ea5c3f9b5227bf86727f5482a 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"
@@
-85,7
+86,7
@@
describe 'apt::pin', :type => :define do
param_set[:params]
end
param_set[:params]
end
- it { should
include
_class("apt::params") }
+ it { should
contain
_class("apt::params") }
it { should contain_file("#{title}.pref").with({
'ensure' => param_hash[:ensure],
it { should contain_file("#{title}.pref").with({
'ensure' => param_hash[:ensure],