spec/grape/validations/validators/allow_blank_spec.rb in grape-0.19.0 vs spec/grape/validations/validators/allow_blank_spec.rb in grape-0.19.1

- old
+ new

@@ -55,13 +55,13 @@ requires :val, type: Float, allow_blank: true end get '/allow_float_blank' params do - requires :val, type: Fixnum, allow_blank: true + requires :val, type: Integer, allow_blank: true end - get '/allow_fixnum_blank' + get '/allow_integer_blank' params do requires :val, type: Symbol, allow_blank: true end get '/allow_symbol_blank' @@ -171,13 +171,13 @@ requires :val, type: Float, allow_blank: true end get '/allow_float_blank' params do - requires :val, type: Fixnum, allow_blank: true + requires :val, type: Integer, allow_blank: true end - get '/allow_fixnum_blank' + get '/allow_integer_blank' params do requires :val, type: Symbol, allow_blank: true end get '/allow_symbol_blank' @@ -343,12 +343,12 @@ it 'accepts empty when float allow_blank' do get '/custom_message/allow_float_blank', val: '' expect(last_response.status).to eq(200) end - it 'accepts empty when fixnum allow_blank' do - get '/custom_message/allow_fixnum_blank', val: '' + it 'accepts empty when integer allow_blank' do + get '/custom_message/allow_integer_blank', val: '' expect(last_response.status).to eq(200) end end it 'accepts empty when symbol allow_blank' do @@ -481,11 +481,11 @@ it 'accepts empty when float allow_blank' do get '/allow_float_blank', val: '' expect(last_response.status).to eq(200) end - it 'accepts empty when fixnum allow_blank' do - get '/allow_fixnum_blank', val: '' + it 'accepts empty when integer allow_blank' do + get '/allow_integer_blank', val: '' expect(last_response.status).to eq(200) end end it 'accepts empty when symbol allow_blank' do