Permalink
Browse files

Fixed BRL so it always has a space between symbol and amount

  • Loading branch information...
1 parent d53a146 commit 898d46265f3d0299507a4f74f39c762d51b00a96 Shane Emmons committed Feb 4, 2010
Showing with 5 additions and 5 deletions.
  1. +2 −2 lib/money/symbols.rb
  2. +3 −3 test/money_spec.rb
View
@@ -13,7 +13,7 @@
"LKR" => "",
"SEK" => "kr",
"GHC" => "¢",
- "BRL" => "R$"
+ "BRL" => "R$ ",
# Everything else defaults to $
-}
+}
View
@@ -251,7 +251,7 @@ def to_money
one["LKR"].should == "₨1.00"
# Brazilian Real
- one["BRL"].should == "R$1.00"
+ one["BRL"].should == "R$ 1.00"
# Other
one["SEK"].should == "kr1.00"
@@ -287,11 +287,11 @@ def to_money
end
specify "#format(:separator => a separator string) works as documented" do
- Money.new(100, "BRL").format(:separator => ",").should == "R$1,00"
+ Money.new(100, "BRL").format(:separator => ",").should == "R$ 1,00"
end
specify "#format(:delimiter => a delimiter string) works as documented" do
- Money.new(100000, "BRL").format(:delimiter => ".").should == "R$1.000.00"
+ Money.new(100000, "BRL").format(:delimiter => ".").should == "R$ 1.000.00"
Money.us_dollar(200000).format(:delimiter => "").should == "$2000.00"
end

0 comments on commit 898d462

Please sign in to comment.