Commit c3e8fdd Joshua Hoblitt
committed
1 parent d50e2af commit c3e8fdd Copy full SHA for c3e8fdd
File tree 1 file changed +10
-8
lines changed
1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 82
82
83
83
# accumutate all of the params and content strings as we test each individual
84
84
# option so we can use them for the next test
85
- config_options . each do |option |
86
- params = { }
87
- params [ option . downcase . to_sym ] = value
88
- content = sprintf ( "%-19s %s\n " , option , value )
85
+ context 'one option at a time' do
86
+ config_options . each do |option |
87
+ params = { }
88
+ params [ option . downcase . to_sym ] = value
89
+ content = sprintf ( "%-19s %s\n " , option , value )
89
90
90
- all_params . merge! ( params )
91
- all_content += content
91
+ all_params . merge! ( params )
92
+ all_content += content
92
93
93
- it_behaves_like 'config' , params , content
94
+ it_behaves_like 'config' , params , content
95
+ end
94
96
end
95
97
96
98
# test all of the known options at once this works because the ordering of
97
99
# options values in the output file is fixed
98
- context 'all parameters ' do
100
+ context 'all options ' do
99
101
it_behaves_like 'config' , all_params , all_content
100
102
end
101
103
You can’t perform that action at this time.
0 commit comments