blob: be4f30b30563223f0283a4d5c32760738beafeb8 (
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
|
require File.expand_path(File.join(File.dirname(__FILE__),'../spec_helper'))
describe 'tor', :type => 'class' do
let(:default_facts) {
{
:osfamily => 'RedHat',
:operatingsystem => 'CentOS',
}
}
let(:facts){ default_facts }
let(:pre_condition){'Exec{path => "/bin"}' }
describe 'with standard' do
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('tor::base') }
context 'on Debian' do
let(:facts) {
{
:osfamily => 'Debian',
:operatingsystem => 'Debian',
}
}
it { is_expected.to compile.with_all_deps }
it { is_expected.to contain_class('tor::base') }
end
end
end
|