File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change 17
17
it { is_expected . to compile }
18
18
end
19
19
20
- context 'with dir set to something' do
21
- let :params do
22
- {
23
- dir : 'hi'
24
- }
25
- end
26
-
27
- it { is_expected . to contain_file ( 'userdir.conf' ) . with_content ( %r{^\s *UserDir\s +/home/\* /hi$} ) }
28
- it { is_expected . to contain_file ( 'userdir.conf' ) . with_content ( %r{^\s *<Directory\s +"/home/\* /hi">$} ) }
29
- end
30
-
31
- context 'with home set to something' do
32
- let :params do
33
- {
34
- home : '/u'
35
- }
36
- end
37
-
38
- it { is_expected . to contain_file ( 'userdir.conf' ) . with_content ( %r{^\s *UserDir\s +/u/\* /public_html$} ) }
39
- it { is_expected . to contain_file ( 'userdir.conf' ) . with_content ( %r{^\s *<Directory\s +"/u/\* /public_html">$} ) }
40
- end
41
-
42
20
context 'with path set to something' do
43
21
let :params do
44
22
{
You can’t perform that action at this time.
0 commit comments