[rspec-users] any tricks re using " eql(5.5)", but where 5.5 is a decimal not float?

Mark Wilden mark at mwilden.com
Fri Nov 7 18:48:47 EST 2008


There's my C roots showing. :) That should be BigDecimal.new('5.5'), of
course.

On Fri, Nov 7, 2008 at 3:47 PM, Mark Wilden <mark at mwilden.com> wrote:

> On Fri, Nov 7, 2008 at 3:24 PM, Greg Hauptmann <
> greg.hauptmann.ruby at gmail.com> wrote:
>
>>
>>     expected 6.5, got #<BigDecimal:23d8284,'0.65E1',8(8)> (using .eql?)
>>
>
> How about just expecting BigDecimal('5.5')?
>
> ///ark
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20081107/61d24d87/attachment.html>


More information about the rspec-users mailing list