Value: change to_s to use sprintf()

This commit is contained in:
josh committed 2013-08-11 14:53:11 -04:00
1 parent 762b7c6413
commit 983861c1dc
2 files changed
+5 -1

No files matched your search

+4
View File
@@ -30,5 +30,9 @@ module Gnucash
c = a - b
c.to_s.should == "-123.99"
end
it "formats the number with two decimal places" do
Value.new("1400/100").to_s.should == "14.00"
end
end
end