spec/reducer_spec.rb in rack-reducer-1.1.1 vs spec/reducer_spec.rb in rack-reducer-1.1.2
- old
+ new
@@ -106,6 +106,12 @@
params = { 'genre' => 'electronic', 'name' => 'blake' }
expect(model.reduce(params).count).to eq(1)
expect(@warnings.first).to include('mixin-style is deprecated')
end
end
+
+ it 'accepts nested params' do
+ get('/artists?range[min]=1&range[max]=100') do |response|
+ expect(response.status).to eq(200)
+ end
+ end
end