spec/grape/validations/validators/allow_blank_spec.rb in grape-0.16.2 vs spec/grape/validations/validators/allow_blank_spec.rb in grape-0.17.0

- old
+ new

@@ -486,9 +486,14 @@ it 'accepts false when boolean allow_blank' do get '/disallow_boolean_blank', val: false expect(last_response.status).to eq(200) end + + it 'accepts value when time allow_blank' do + get '/disallow_datetime_blank', val: Time.now + expect(last_response.status).to eq(200) + end end context 'in an optional group' do context 'as a required param' do it 'accepts a missing group, even with a disallwed blank param' do