From: Matt Armstrong Date: 2002-01-11T15:53:39+09:00 Subject: Re: (DBI || RUnit || Ruby || My_Understanding).bug? z4k4ri4@bigfoot.com (Zakaria) writes: > Hi Rubyers > > Is it a bug or not? > If it is then whoose? > > The script: > --------------------------------------------------------------------- > #!/usr/bin/ruby > require 'dbi' > require 'runit/testcase' > module DBI > class Date > def ==(other) > return @year == other.year && @month == other.month && > @day == other.day > end > end > end Try overriding eql? as well as ==. -- matt