Bug #13652
closed
Ruby 2.3.4 does not catch Argument error when comparing DateTime with String
Added by derekzwy (Wenyuan Zhang) about 8 years ago.
Updated almost 8 years ago.
Description
Ruby 2.3.4 does not catch Argument error when comparing DateTime with String, while Ruby 2.1.5 catches it and return false.
Files
@derekzwy it is fixed in Ruby2.4.1 and active_support 5.1.1
it looks like the bug does happen in your active_support version.
Try to update to a newer one.
- Status changed from Open to Rejected
It can't be reproduced.
% ruby -v -r "date" -e "p DateTime.parse == 'No End Date'"
ruby 2.5.0dev (2017-08-29 trunk 59656) [x86_64-darwin15]
false
Also available in: Atom
PDF
Like0
Like0Like0