2 describe 'apt::pin', :type => :define do
3 let(:title) { 'my_pin' }
14 :packages => 'apache',
18 describe "when #{param_set == {} ? "using default" : "specifying"} define parameters" do
20 param_set == {} ? default_params : params
27 it { should include_class("apt::params") }
29 it { should create_file("#{title}.pref")\
30 .with_path("/etc/apt/preferences.d/#{title}")\
35 .with_content("# #{title}\nPackage: #{param_hash[:packages]}\nPin: release a=#{title}\nPin-Priority: #{param_hash[:priority]}")