spec/danconia/money_spec.rb in danconia-0.2.2 vs spec/danconia/money_spec.rb in danconia-0.2.3

- old
+ new

@@ -94,11 +94,11 @@ context 'to_s' do it 'should add the currency symbol' do expect(Money(3.25).to_s).to eq '$3.25' TestHelpers.with_config do |config| - config.default_exchange = Exchanges::FixedRates.new currencies: [{code: 'EUR', symbol: '€'}, {code: 'JPY', symbol: '¥'}] + config.available_currencies = [{code: 'EUR', symbol: '€'}, {code: 'JPY', symbol: '¥'}] expect(Money(1, 'EUR').to_s).to eq '€1.00' expect(Money(1, 'JPY').to_s).to eq '¥1.00' expect(Money(1, 'OTHER').to_s).to eq '$1.00' end @@ -166,9 +166,9 @@ expect(Money(10).respond_to?(:positive?)).to be true end end def fake_exchange args = {} - double 'exchange', args.reverse_merge(rate: nil, currencies: []) + double 'exchange', args.reverse_merge(rate: nil) end end end