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:
Pete Johns 2014-07-04 14:31:39 +10:00
parent 069aa56d5c
commit b3fed85b57

View file

@ -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