Skip to content

Commit

Permalink
check apt::source in catalog, not the file it creates
Browse files Browse the repository at this point in the history
We should trust the apt module to do the right thing,
and just test that apt::source is part of the catalogue.
  • Loading branch information
Matthew Haughton committed Oct 21, 2013
1 parent 0da2fa1 commit 3959823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/classes/package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

shared_examples 'debian' do |operatingsystem, lsbdistcodename|
let(:facts) {{ :operatingsystem => operatingsystem, :osfamily => 'Debian', :lsbdistcodename => lsbdistcodename }}
it { should contain_file('/etc/apt/sources.list.d/nginx.list') }
it { should contain_apt__source('nginx') }
end

shared_examples 'suse' do |operatingsystem|
Expand Down

0 comments on commit 3959823

Please sign in to comment.