Update specs for #145

This commit is contained in:
Hunter Haugen 2013-08-05 13:41:25 -07:00
parent 6cde028332
commit 5db24d8e33

View file

@ -67,13 +67,13 @@ describe 'apt::ppa', :type => :define do
proxy_host => false
}'
end
let :filename do
"#{title}-#{release}.list"
end
let :filename do
"#{title}-#{release}.list"
end
it { should contain_exec("add-apt-repository-#{title}").with(
'environment' => [],
'command' => "/usr/bin/add-apt-repository #{title}",
'command' => "/usr/bin/add-apt-repository #{options} #{title}",
'creates' => "/etc/apt/sources.list.d/#{filename}",
'require' => ["File[/etc/apt/sources.list.d]", "Package[#{package}]"],
'notify' => "Exec[apt_update]"