module-puppetlabs-apt/spec/classes/release_spec.rb
2015-02-06 21:16:05 +01:00

23 lines
520 B
Ruby

require 'spec_helper'
describe 'apt::release', :type => :class do
let(:facts) { { :lsbdistid => 'Debian' } }
let (:title) { 'my_package' }
let :param_set do
{ :release_id => 'precise' }
end
let (:params) { param_set }
it { should contain_class("apt::params") }
it {
should contain_file("/etc/apt/apt.conf.d/01release").with({
"mode" => "0644",
"owner" => "root",
"group" => "root",
"content" => /APT::Default-Release "#{param_set[:release_id]}";/
})
}
end