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 1717 it { is_expected . to compile }
1818 end
1919
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-
4220 context 'with path set to something' do
4321 let :params do
4422 {
You can’t perform that action at this time.
0 commit comments