[rspec-users] any tricks re using " eql(5.5)", but where 5.5 is a decimal not float?
greg.hauptmann.ruby at gmail.com
Fri Nov 7 18:24:16 EST 2008
(woops - full email below)
My rails migrations / mysql database uses Decimal and I've noticed in
my rspec when I do a "...should eql(5.5)" that they're failing as the
expected result here is a float not a decimal. For example see
expected 6.5, got #<BigDecimal:23d8284,'0.65E1',8(8)> (using .eql?)
What's the best way of addressing this? Is there trick regarding the
easiest way to address this?
On Sat, Nov 8, 2008 at 9:18 AM, Greg Hauptmann
<greg.hauptmann.ruby at gmail.com> wrote:
> Sent from my mobile device
More information about the rspec-users