spec/configuration_spec.rb in money-rails-1.4.1 vs spec/configuration_spec.rb in money-rails-1.5.0

- old
+ new

@@ -11,11 +11,11 @@ it "registers a custom currency" do expect(Money::Currency.table).to include(:eu4) end it "adds exchange rates given in config initializer" do - expect(Money.us_dollar(100).exchange_to("CAD")).to eq(Money.new(124, "CAD")) - expect(Money.ca_dollar(100).exchange_to("USD")).to eq(Money.new(80, "USD")) + expect(Money.us_dollar(100).bank.get_rate('USD', 'CAD')).to eq(1.24515) + expect(Money.ca_dollar(100).bank.get_rate('CAD', 'USD')).to eq(0.803115) 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