38c0208673
include_class was deprecated starting from rspec-puppet 1.0.0.
22 lines
477 B
Ruby
22 lines
477 B
Ruby
require 'spec_helper'
|
|
describe 'apt::release', :type => :class do
|
|
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
|
|
|