File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ def merge!(hash)
131131 end
132132
133133 # Some keywords that don't play nicely with OpenStruct
134- SETTINGS_RESERVED_NAMES = %w{ select collect test }
134+ SETTINGS_RESERVED_NAMES = %w{ select collect test count }
135135
136136 # An alternative mechanism for property access.
137137 # This let's you do foo['bar'] along with foo.bar.
Original file line number Diff line number Diff line change 11select : 123
22collect : 456
3+ count : 789
Original file line number Diff line number Diff line change 1010 it 'should allow to access them via object member notation' do
1111 expect ( config . select ) . to eq ( 123 )
1212 expect ( config . collect ) . to eq ( 456 )
13+ expect ( config . count ) . to eq ( 789 )
1314 end
1415
1516 it 'should allow to access them using [] operator' do
1617 expect ( config [ 'select' ] ) . to eq ( 123 )
1718 expect ( config [ 'collect' ] ) . to eq ( 456 )
19+ expect ( config [ 'count' ] ) . to eq ( 789 )
1820
1921 expect ( config [ :select ] ) . to eq ( 123 )
2022 expect ( config [ :collect ] ) . to eq ( 456 )
23+ expect ( config [ :count ] ) . to eq ( 789 )
2124 end
2225 end
2326
You can’t perform that action at this time.
0 commit comments