Spec for MODULES-1194
Ini_file module does not recognize section names with forward slashes in them https://tickets.puppetlabs.com/browse/MODULES-1194
This commit is contained in:
parent
069aa56d5c
commit
b3fed85b57
1 changed files with 17 additions and 0 deletions
|
@ -202,4 +202,21 @@ to-deploy = log --merges --grep='pull request' --format='%s (%cN)' origin/produc
|
|||
]
|
||||
end
|
||||
end
|
||||
|
||||
context 'section names with forward slashes in them' do
|
||||
let(:sample_content) do
|
||||
template = <<-EOS
|
||||
[monitor:///var/log/*.log]
|
||||
disabled = test_value
|
||||
EOS
|
||||
template.split("\n")
|
||||
end
|
||||
|
||||
it "should parse the correct section_names" do
|
||||
subject.section_names.should match_array [
|
||||
'',
|
||||
'monitor:///var/log/*.log'
|
||||
]
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue