"Greg Hauptmann" <[EMAIL PROTECTED]> writes:

Do you mean BigDecimal?  Anyway, you should probably be using == instead
of eql.

>> 5.5 == BigDecimal.new('5.5')
=> true
>> 5.5.eql? BigDecimal.new('5.5')
=> false

eql? is object identity and is generally not what you're after.

Pat
_______________________________________________
rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to