brooklynDev / airborne

RSpec driven API testing framework
MIT License
1.13k stars 122 forks source link

date_or_null fix #123

Closed tabermike closed 7 years ago

tabermike commented 7 years ago

fix: expect_json_types when type is :date_or_null and actual value is null Includes tests to validate change

Dates may be null until specifically set; example response: {"dateDeleted": null} This patch corrects invalid type failure when response is a valid date; example response: {"dateDeleted": "2009-12-09T06:00:00Z"} and expected type is :date_or_null

coveralls commented 7 years ago

Coverage Status

Coverage increased (+0.1%) to 99.103% when pulling dbd6fef0d477ffbf3d27294ecf09296590f16221 on Widen:date-or-null-fix into 55311accd13abbe3a533429fdf80a66cb31dd84f on brooklynDev:master.

sethpollack commented 7 years ago

Thanks!