+ context 'pin_priority' do
+ it 'should work with no errors' do
+ pp = <<-EOS
+ class { 'apt::backports': pin_priority => 500, }
+ EOS
+
+ apply_manifest(pp, :catch_failures => true)
+ end
+ describe file('/etc/apt/preferences.d/backports.pref') do
+ it { should be_file }
+ it { should contain "Pin-Priority: 500" }
+ end
+ end
+