CSV.== fails to check object type
CSV::Row's equality method presumes it is comparing another CSV::Row. It fails when the object to be compared doesn't support the 'row' method:
==': undefined method row' for nil:NilClass (NoMethodError)
from test.rb:7:in `'
Updated by JEG2 (James Gray) over 9 years ago
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r38265.
Stephen, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
- lib/csv.rb: A fix for row comparison by Stephen Wattam. [Bug #7528]