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
(#13289) Clean up style violations and fix corresponding tests
[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 52c6bfae19de80abfff93bbc7ec6c3dbab55064d..dbc595c568000caf7a6536356c9395fe17f3f617 100644
(file)
--- a/
spec/defines/pin_spec.rb
+++ b/
spec/defines/pin_spec.rb
@@
-27,12
+27,12
@@
describe 'apt::pin', :type => :define do
it { should include_class("apt::params") }
it { should contain_file("#{title}.pref").with({
it { should include_class("apt::params") }
it { should contain_file("#{title}.pref").with({
+ 'ensure' => 'file',
'path' => "/etc/apt/preferences.d/#{title}",
'path' => "/etc/apt/preferences.d/#{title}",
- 'ensure' => "file",
- 'owner' => "root",
- 'group' => "root",
- 'mode' => "644",
- 'content' => "# #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{title}\nPin-Priority: #{param_hash[:priority]}"
+ 'owner' => 'root',
+ 'group' => 'root',
+ 'mode' => '0644',
+ 'content' => "# #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{title}\nPin-Priority: #{param_hash[:priority]}",
})
}
end
})
}
end