Permalink
Browse files

Remove warning: already initialized constant STRINGIFIED_KEYS

Just add btc stringified keys
  • Loading branch information...
1 parent 8ff4366 commit 048f37036bfcd564caa1c83f7e2c44d9cebea004 @spk committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/open_exchange_rates_bank_test.rb
@@ -51,7 +51,7 @@
:separator => ".",
:delimiter => ","
}
- Money::Currency::STRINGIFIED_KEYS = Money::Currency::TABLE.keys.map{|k| k.to_s.downcase }
+ Money::Currency::STRINGIFIED_KEYS << 'btc'
@bank.add_rate("USD", "BTC", 1 / 13.7603)
@bank.add_rate("BTC", "USD", 13.7603)
@bank.exchange(100, "BTC", "USD").cents.must_equal 138

0 comments on commit 048f370

Please sign in to comment.