blob: ad99c8633656b31e2cf37df1085580104061245d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
require File.expand_path(File.join(File.dirname(__FILE__),'../spec_helper'))
describe 'trocla::master', :type => 'class' do
context 'with default params' do
context 'on RedHat' do
let(:facts) {
{
:osfamily => 'RedHat',
}
}
it { should contain_package('trocla').with(
:name => 'rubygem-trocla',
:ensure => 'installed'
)}
it { should compile.with_all_deps }
end
context 'on Debian' do
let(:facts) {
{
:osfamily => 'Debian',
}
}
it { should contain_package('trocla').with(
:ensure => 'installed'
)}
it { should compile.with_all_deps }
end
end
context 'with gem provider' do
let(:params){
{
:provider => 'gem'
}
}
it { should contain_package('trocla').with(
:ensure => 'installed',
:provider => 'gem'
)}
it { should compile.with_all_deps }
context 'on RedHat' do
it { should contain_package('trocla').with(
:name => 'trocla',
:ensure => 'installed',
:provider => 'gem'
)}
it { should compile.with_all_deps }
end
end
end
|