Skip to content

Commit

Permalink
Added rspec tests for previous commit 4dad6be
Browse files Browse the repository at this point in the history
  • Loading branch information
queeno committed Dec 5, 2014
1 parent 34412d1 commit da24604
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@
context 'on Debian' do
let(:params) {{ :manage_repos => false }}
let(:facts) {{ :osfamily => 'Debian', :lsbdistid => 'Debian', :lsbdistcodename => 'squeeze' }}
it 'does not include rabbitmq::repo::apt when manage_repos is false' do
should_not contain_class('rabbitmq::repo::apt')
it 'does ensure rabbitmq apt::source is absent when manage_repos is false' do
should contain_apt__source('rabbitmq').with(
'ensure' => 'absent'
)
end
end

Expand All @@ -45,8 +47,8 @@
context 'on Redhat' do
let(:params) {{ :manage_repos => false }}
let(:facts) {{ :osfamily => 'RedHat' }}
it 'does not include rabbitmq::repo::rhel when manage_repos is false' do
should_not contain_class('rabbitmq::repo::rhel')
it 'does not import repo public key when manage_repos is false' do
should_not contain_exec('rpm --import http://www.rabbitmq.com/rabbitmq-signing-key-public.asc')
end
end

Expand Down

0 comments on commit da24604

Please sign in to comment.