Skip to content

Commit b3fed85

Browse files
committed
Spec for MODULES-1194
Ini_file module does not recognize section names with forward slashes in them https://tickets.puppetlabs.com/browse/MODULES-1194
1 parent 069aa56 commit b3fed85

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

spec/unit/puppet/util/ini_file_spec.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,4 +202,21 @@
202202
]
203203
end
204204
end
205+
206+
context 'section names with forward slashes in them' do
207+
let(:sample_content) do
208+
template = <<-EOS
209+
[monitor:///var/log/*.log]
210+
disabled = test_value
211+
EOS
212+
template.split("\n")
213+
end
214+
215+
it "should parse the correct section_names" do
216+
subject.section_names.should match_array [
217+
'',
218+
'monitor:///var/log/*.log'
219+
]
220+
end
221+
end
205222
end

0 commit comments

Comments
 (0)