require 'spec_helper'
describe 'apt::release', :type => :class do
+ let(:facts) { { :lsbdistid => 'Debian', :osfamily => 'Debian' } }
let (:title) { 'my_package' }
let :param_set do
let (:params) { param_set }
- it { should include_class("apt::params") }
+ it { should contain_class("apt::params") }
it {
- should contain_file("/etc/apt/apt.conf.d/01release")\
- .with_owner("root")\
- .with_group("root")\
- .with_mode(644)\
- .with_content("APT::Default-Release \"#{param_set[:release_id]}\";")
+ 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