Skip to content

Commit

Permalink
Fix tests for apt source changes
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Aug 12, 2014
1 parent 3a4bc01 commit 2a5ec94
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions spec/classes/sensu_package_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
let(:facts) { { :osfamily => 'Debian' } }

context 'with puppet-apt installed' do
let(:pre_condition) { [ 'define apt::source ($ensure, $location, $release, $repos, $include_src) {}', 'define apt::key ($key, $key_source) {}' ] }
let(:pre_condition) { [ 'define apt::source ($ensure, $location, $release, $repos, $include_src, $key, $key_source) {}' ] }

context 'default' do
it { should contain_apt__source('sensu').with(
Expand All @@ -50,12 +50,9 @@
:release => 'sensu',
:repos => 'main',
:include_src => false,
:before => 'Package[sensu]'
) }

it { should contain_apt__key('sensu').with(
:key => '7580C77F',
:key_source => 'http://repos.sensuapp.org/apt/pubkey.gpg'
:key_source => 'http://repos.sensuapp.org/apt/pubkey.gpg',
:before => 'Package[sensu]'
) }
end

Expand Down

0 comments on commit 2a5ec94

Please sign in to comment.