Skip to content

Commit 69bee20

Browse files
committed
Adds acceptance testing for setting names containing white space in the middle
1 parent a747f66 commit 69bee20

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

spec/acceptance/ini_setting_spec.rb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,10 @@
147147

148148
describe 'section, setting, value parameters' do
149149
{
150-
"section => 'test', setting => 'foo', value => 'bar'," => /\[test\]\nfoo = bar/,
151-
"section => 'more', setting => 'baz', value => 'quux'," => /\[more\]\nbaz = quux/,
152-
"section => '', setting => 'top', value => 'level'," => /top = level/,
150+
"section => 'test', setting => 'foo', value => 'bar'," => /\[test\]\nfoo = bar/,
151+
"section => 'more', setting => 'baz', value => 'quux'," => /\[more\]\nbaz = quux/,
152+
"section => '', setting => 'top', value => 'level'," => /top = level/,
153+
"section => 'z', setting => 'sp aces', value => 'foo bar'," => /\[z\]\nsp aces = foo bar/,
153154
}.each do |parameter_list, content|
154155
context parameter_list do
155156
pp = <<-EOS

spec/unit/puppet/util/ini_file_spec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,8 @@
262262
subject.get_value("Drive names", "C:").should eq 'Winchester'
263263
end
264264
end
265-
context 'Configuration with spaces in setting names' do
265+
266+
context 'Configuration with spaces in setting names' do
266267
let(:sample_content) do
267268
template = <<-EOS
268269
[global]

0 commit comments

Comments
 (0)