diff --git a/.ruby-version b/.ruby-version index ff365e0..1cf8253 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.1.3 +3.4.6 diff --git a/lib/active_currency/bank.rb b/lib/active_currency/bank.rb index 1ded80d..c0a16e4 100644 --- a/lib/active_currency/bank.rb +++ b/lib/active_currency/bank.rb @@ -3,7 +3,7 @@ module ActiveCurrency class Bank < Money::Bank::VariableExchange def initialize(rate_store = ActiveCurrency::RateStore.new) - super(rate_store) + super end end end diff --git a/spec/lib/active_currency/add_rates_spec.rb b/spec/lib/active_currency/add_rates_spec.rb index 7a047d6..12c7061 100644 --- a/spec/lib/active_currency/add_rates_spec.rb +++ b/spec/lib/active_currency/add_rates_spec.rb @@ -152,10 +152,10 @@ .with("CAD", "EUR", (1 / 1.12) * 1.2) expect(store) .to have_received(:add_rate) - .with("CAD", "USD", a_value_within(0.0000001).of((1.42 / 1.12))) + .with("CAD", "USD", a_value_within(0.0000001).of(1.42 / 1.12)) expect(store) .to have_received(:add_rate) - .with("USD", "CAD", a_value_within(0.0000001).of((1.12 / 1.42))) + .with("USD", "CAD", a_value_within(0.0000001).of(1.12 / 1.42)) end end end