[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:47:58 EST 2008


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/19fc9829/attachment.html>


More information about the rspec-users mailing list