I have this spec that checks for the expected number:
expect(animal_cost).to eq(0.7771118644067795e5)
I get an error that says:
expected: 77711.18644067795
got: 0.7771118644067795e5
As you can see, the number I got is the same as the one I expected so I'm confused why this is failing. How can I set the spec?
animal_cost.class is a BigDecimal.