Permalink
Browse files

Fix test by disabling I18n default

  • Loading branch information...
1 parent d5381a2 commit 294e0f4a712eb4e93c37562b52bb5a3b63160011 @alup alup committed Feb 17, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 spec/configuration_spec.rb
@@ -18,6 +18,9 @@
end
it "sets no_cents_if_whole value for formatted output globally" do
+ # Disable the usage of I18n (to avoid default symbols for :en)
+ Money.use_i18n = false
+
value = Money.new(12345600, "EUR")
mark = Money::Currency.find(:eur).decimal_mark
value.format.should =~ /#{mark}/
@@ -30,8 +33,9 @@
value.format.should =~ /#{mark}/
value.format(no_cents_if_whole: true).should_not =~ /#{mark}/
- # Reset global setting
+ # Reset global settings
MoneyRails.no_cents_if_whole = nil
+ Money.use_i18n = true
end
it "sets symbol for formatted output globally" do

0 comments on commit 294e0f4

Please sign in to comment.