2 describe 'apt::pin', :type => :define do
3 let(:title) { 'my_pin' }
15 :packages => 'apache',
20 :packages => 'apache',
24 describe "when #{param_set == {} ? "using default" : "specifying"} define parameters" do
26 default_params.merge(param_set)
33 it { should include_class("apt::params") }
35 it { should contain_file("#{title}.pref").with({
36 'ensure' => param_hash[:ensure],
37 'path' => "/etc/apt/preferences.d/#{title}",
41 'content' => "# #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{title}\nPin-Priority: #{param_hash[:priority]}",