spec/money/formatting_spec.rb in money-6.1.0.beta1 vs spec/money/formatting_spec.rb in money-6.1.0

- old
+ new

@@ -130,11 +130,11 @@ one_thousand["NPR"].should == "₨1,000.00" one_thousand["SCR"].should == "1,000.00 ₨" one_thousand["LKR"].should == "1,000.00 ₨" # Brazilian Real - one_thousand["BRL"].should == "R$ 1.000,00" + one_thousand["BRL"].should == "R$1.000,00" # Other one_thousand["SEK"].should == "1 000,00 kr" one_thousand["GHC"].should == "₵1,000.00" end @@ -241,11 +241,11 @@ one["NPR"].should == "₨1.00" one["SCR"].should == "1.00 ₨" one["LKR"].should == "1.00 ₨" # Brazilian Real - one["BRL"].should == "R$ 1,00" + one["BRL"].should == "R$1,00" # Other one["SEK"].should == "1,00 kr" one["GHC"].should == "₵1.00" end @@ -279,9 +279,18 @@ money = Money.new(100, "GBP") money.format.should == "£1.00" money = Money.new(100, "EUR") money.format.should == "€1,00" + end + + specify "(:symbol => false) returns a signed amount without a symbol" do + money = Money.new(-100, "EUR") + money.format(:symbol => false).should == "-1,00" + + money = Money.new(100, "EUR") + money.format(:symbol => false, + :sign_positive => true).should == "+1,00" end end describe ":decimal_mark option" do specify "(:decimal_mark => a decimal_mark string) works as documented" do