Skip to content
Browse files

Bugfix in testhelper

  • Loading branch information...
1 parent eb59454 commit d62e5e575dfda060d3de50ba14cc2f593c1a2cb1 @jeroeningen committed May 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/acts_as_price_helper.rb
View
2 lib/acts_as_price_helper.rb
@@ -100,7 +100,7 @@ def test_setter_in_doubles double, seperator
@acts_as_price_model.send(getter).should == ""
else
if currency
- @acts_as_price_model.send(getter).should == currency + ". " + sprintf("%.2f", double.gsub(",", ".").to_s).gsub(".", seperator)
+ @acts_as_price_model.send(getter).should == currency + ". " + sprintf("%.2f", (double.gsub(",", ".").to_f + 0.001).to_s).gsub(".", seperator)
else
@acts_as_price_model.send(getter).should == sprintf("%.2f", double.gsub(",", ".").to_s).gsub(".", seperator)
end

0 comments on commit d62e5e5

Please sign in to comment.
Something went wrong with that request. Please try again.