spec/money/formatting_spec.rb in money-6.0.1 vs spec/money/formatting_spec.rb in money-6.1.0.beta1
- old
+ new
@@ -359,11 +359,10 @@
string = Money.ca_dollar(570).format(:html_wrap_symbol => true)
string.should == "<span class=\"currency_symbol\">$</span>5.70"
end
end
-
describe ":symbol_position option" do
it "inserts currency symbol before the amount when set to :before" do
Money.euro(1_234_567_12).format(:symbol_position => :before).should == "€1.234.567,12"
end
@@ -484,15 +483,10 @@
it "returns the value specified by :display_free if it's a string-like object" do
money.format(:display_free => 'gratis').should == 'gratis'
end
end
-
- it "maintains floating point precision" do
- "0.01".to_money("USD").format(:symbol => false).should == "0.01"
- end
-
end
context "custom currencies with 4 decimal places" do
before :each do
Money::Currency.register(JSON.parse(BAR, :symbolize_names => true))
@@ -533,6 +527,5 @@
Money.new(88833310034, "EU4").format.should == "€8.883.331,0034"
end
end
end
-