|
4 | 4 | let(:facts) { {:osfamily=> 'RedHat'} }
|
5 | 5 |
|
6 | 6 | describe 'with no params' do
|
7 |
| - it { should include_class('pureftpd') } |
| 7 | + it { should contain_class('pureftpd') } |
8 | 8 | it { should contain_class('pureftpd::install') }
|
9 | 9 | it do
|
10 | 10 | should contain_class('pureftpd::config').
|
|
19 | 19 | describe 'with $use_selinux => true' do
|
20 | 20 | let(:params) {{ :use_selinux => true }}
|
21 | 21 |
|
22 |
| - it { should include_class('pureftpd') } |
| 22 | + it { should contain_class('pureftpd') } |
23 | 23 | it { should contain_class('pureftpd::install').with_use_selinux(true) }
|
24 | 24 | it do
|
25 | 25 | should contain_class('pureftpd::config').
|
|
34 | 34 | describe 'with $use_selinux => false' do
|
35 | 35 | let(:params) {{ :use_selinux => false }}
|
36 | 36 |
|
37 |
| - it { should include_class('pureftpd') } |
| 37 | + it { should contain_class('pureftpd') } |
38 | 38 | it { should contain_class('pureftpd::install').with_use_selinux(false) }
|
39 | 39 | it do
|
40 | 40 | should contain_class('pureftpd::config').
|
|
51 | 51 |
|
52 | 52 | it 'should fail' do
|
53 | 53 | expect {
|
54 |
| - should include_class('pureftpd') |
| 54 | + should contain_class('pureftpd') |
55 | 55 | }.to raise_error(Puppet::Error, /is not a boolean/)
|
56 | 56 | end
|
57 | 57 | end
|
58 | 58 |
|
59 | 59 | describe 'with $config => {}' do
|
60 | 60 | let(:params) {{ :config => {} }}
|
61 | 61 |
|
62 |
| - it { should include_class('pureftpd') } |
| 62 | + it { should contain_class('pureftpd') } |
63 | 63 | it { should contain_class('pureftpd::install') }
|
64 | 64 | it do
|
65 | 65 | should contain_class('pureftpd::config').
|
|
79 | 79 | }
|
80 | 80 | }}
|
81 | 81 |
|
82 |
| - it { should include_class('pureftpd') } |
| 82 | + it { should contain_class('pureftpd') } |
83 | 83 | it { should contain_class('pureftpd::install') }
|
84 | 84 | it do
|
85 | 85 | should contain_class('pureftpd::config').
|
|
100 | 100 |
|
101 | 101 | it 'should fail' do
|
102 | 102 | expect {
|
103 |
| - should include_class('pureftpd') |
| 103 | + should contain_class('pureftpd') |
104 | 104 | }.to raise_error(Puppet::Error, /is not a Hash/)
|
105 | 105 | end
|
106 | 106 | end
|
|
115 | 115 | }
|
116 | 116 | end
|
117 | 117 |
|
118 |
| - it { should include_class('pureftpd') } |
| 118 | + it { should contain_class('pureftpd') } |
119 | 119 | it { should contain_class('pureftpd::install') }
|
120 | 120 | it do
|
121 | 121 | should contain_class('pureftpd::config').
|
|
139 | 139 |
|
140 | 140 | it 'should fail' do
|
141 | 141 | expect {
|
142 |
| - should include_class('pureftpd') |
| 142 | + should contain_class('pureftpd') |
143 | 143 | }.to raise_error(Puppet::Error, /is not a Hash/)
|
144 | 144 | end
|
145 | 145 | end
|
|
154 | 154 | }
|
155 | 155 | end
|
156 | 156 |
|
157 |
| - it { should include_class('pureftpd') } |
| 157 | + it { should contain_class('pureftpd') } |
158 | 158 | it { should contain_class('pureftpd::install') }
|
159 | 159 | it do
|
160 | 160 | should contain_class('pureftpd::config').
|
|
178 | 178 |
|
179 | 179 | it 'should fail' do
|
180 | 180 | expect {
|
181 |
| - should include_class('pureftpd') |
| 181 | + should contain_class('pureftpd') |
182 | 182 | }.to raise_error(Puppet::Error, /is not a Hash/)
|
183 | 183 | end
|
184 | 184 | end
|
|
193 | 193 | }
|
194 | 194 | end
|
195 | 195 |
|
196 |
| - it { should include_class('pureftpd') } |
| 196 | + it { should contain_class('pureftpd') } |
197 | 197 | it { should contain_class('pureftpd::install') }
|
198 | 198 | it do
|
199 | 199 | should contain_class('pureftpd::config').
|
|
217 | 217 |
|
218 | 218 | it 'should fail' do
|
219 | 219 | expect {
|
220 |
| - should include_class('pureftpd') |
| 220 | + should contain_class('pureftpd') |
221 | 221 | }.to raise_error(Puppet::Error, /is not a Hash/)
|
222 | 222 | end
|
223 | 223 | end
|
|
241 | 241 | }
|
242 | 242 | end
|
243 | 243 |
|
244 |
| - it { should include_class('pureftpd') } |
| 244 | + it { should contain_class('pureftpd') } |
245 | 245 | it { should contain_class('pureftpd::install') }
|
246 | 246 | it do
|
247 | 247 | should contain_class('pureftpd::config').
|
|
0 commit comments