spec/parameter_raise_spec.rb in sinatra-param-1.2.2 vs spec/parameter_raise_spec.rb in sinatra-param-1.3.0

- old
+ new

@@ -2,10 +2,17 @@ describe 'Exception' do describe 'raise' do it 'should raise error when option is specified' do expect { - get('/raise') + get('/raise/validation/required') }.to raise_error end + end + + it 'should raise error when more than one parameter is specified' do + params = {a: 1, b: 2, c: 3} + expect { + get('/raise/choice', params) + }.to raise_error end end