|
20 | 20 | } |
21 | 21 | end |
22 | 22 | it 'should contain the section header' do |
23 | | - should contain_concat__fragment('puppet.conf_main').with_content("\n\n[main]") |
| 23 | + should contain_concat__fragment('puppet.conf_main').with_content("\n[main]") |
24 | 24 | should contain_concat__fragment('puppet.conf_main').with_order("1_main ") |
25 | 25 | end |
| 26 | + it 'should contain the section end' do |
| 27 | + should contain_concat__fragment('puppet.conf_main_end').with_content("\n") |
| 28 | + should contain_concat__fragment('puppet.conf_main_end').with_order("1_main~end") |
| 29 | + end |
26 | 30 | it 'should contain the keyvalue pair' do |
27 | 31 | should contain_concat__fragment('puppet.conf_main_foo').with_content(/^\s+foo = bar$/) |
28 | 32 | should contain_concat__fragment('puppet.conf_main_foo').with_order("1_main_foo ") |
|
41 | 45 | } |
42 | 46 | end |
43 | 47 | it 'should contain the section header' do |
44 | | - should contain_concat__fragment('puppet.conf_main').with_content("\n\n[main]") |
| 48 | + should contain_concat__fragment('puppet.conf_main').with_content("\n[main]") |
45 | 49 | should contain_concat__fragment('puppet.conf_main').with_order("1_main ") |
46 | 50 | end |
| 51 | + it 'should contain the section end' do |
| 52 | + should contain_concat__fragment('puppet.conf_main_end').with_content("\n") |
| 53 | + should contain_concat__fragment('puppet.conf_main_end').with_order("1_main~end") |
| 54 | + end |
47 | 55 | it 'should contain the keyvalue pair' do |
48 | 56 | should contain_concat__fragment('puppet.conf_main_foo').with_content(/^\s+foo = bar,baz$/) |
49 | 57 | should contain_concat__fragment('puppet.conf_main_foo').with_order("1_main_foo ") |
|
63 | 71 | } |
64 | 72 | end |
65 | 73 | it 'should contain the section header' do |
66 | | - should contain_concat__fragment('puppet.conf_main').with_content("\n\n[main]") |
| 74 | + should contain_concat__fragment('puppet.conf_main').with_content("\n[main]") |
67 | 75 | should contain_concat__fragment('puppet.conf_main').with_order("1_main ") |
68 | 76 | end |
| 77 | + it 'should contain the section end' do |
| 78 | + should contain_concat__fragment('puppet.conf_main_end').with_content("\n") |
| 79 | + should contain_concat__fragment('puppet.conf_main_end').with_order("1_main~end") |
| 80 | + end |
69 | 81 | it 'should contain the keyvalue pair' do |
70 | 82 | should contain_concat__fragment('puppet.conf_main_foo').with_content(/^\s+foo = bar:baz$/) |
71 | 83 | should contain_concat__fragment('puppet.conf_main_foo').with_order("1_main_foo ") |
|
0 commit comments