It was returning a BigDecimal and I couldn't get it to evaluate properly in my spec. That's just what I found online trying to find a quick solution – feel free to fix it to whatever's more appropriate.