spec/parameter_raise_spec.rb in sinatra-param-1.3.1 vs spec/parameter_raise_spec.rb in sinatra-param-1.4.0

- old
+ new

@@ -10,9 +10,16 @@ end it 'should raise error when more than one parameter is specified' do params = {a: 1, b: 2, c: 3} expect { - get('/raise/choice/3', params) + get('/raise/one_of/3', params) + }.to raise_error + end + + it 'should raise error when no parameters are specified' do + params = {} + expect { + get('/raise/any_of', params) }.to raise_error end end