Skip to content

Commit

Permalink
Adds acceptance testing for setting names containing white space in t…
Browse files Browse the repository at this point in the history
…he middle
  • Loading branch information
bmjen committed Mar 31, 2015
1 parent a747f66 commit 69bee20
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 4 additions & 3 deletions spec/acceptance/ini_setting_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,10 @@

describe 'section, setting, value parameters' do
{
"section => 'test', setting => 'foo', value => 'bar'," => /\[test\]\nfoo = bar/,
"section => 'more', setting => 'baz', value => 'quux'," => /\[more\]\nbaz = quux/,
"section => '', setting => 'top', value => 'level'," => /top = level/,
"section => 'test', setting => 'foo', value => 'bar'," => /\[test\]\nfoo = bar/,
"section => 'more', setting => 'baz', value => 'quux'," => /\[more\]\nbaz = quux/,
"section => '', setting => 'top', value => 'level'," => /top = level/,
"section => 'z', setting => 'sp aces', value => 'foo bar'," => /\[z\]\nsp aces = foo bar/,
}.each do |parameter_list, content|
context parameter_list do
pp = <<-EOS
Expand Down
3 changes: 2 additions & 1 deletion spec/unit/puppet/util/ini_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,8 @@
subject.get_value("Drive names", "C:").should eq 'Winchester'
end
end
context 'Configuration with spaces in setting names' do

context 'Configuration with spaces in setting names' do
let(:sample_content) do
template = <<-EOS
[global]
Expand Down

0 comments on commit 69bee20

Please sign in to comment.