it { should include_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