Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: RubyMoney/money-rails
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: f5d1fc409682b840451c4df2c0e97aeacb60c8c5
Choose a base ref
..
head repository: RubyMoney/money-rails
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 80bfef3b090d3a9741bdb2da71b9ac4ee9cf7a43
Choose a head ref
Showing with 6 additions and 8 deletions.
  1. +1 −1 Gemfile
  2. +5 −7 spec/active_record/monetizable_spec.rb
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ platforms :jruby do
end

platforms :ruby do
gem "sqlite3"
gem "sqlite3", '~> 1.4'
end

platform :mri do
12 changes: 5 additions & 7 deletions spec/active_record/monetizable_spec.rb
Original file line number Diff line number Diff line change
@@ -952,15 +952,13 @@ class SubProduct < Product
context 'without a default currency' do
let(:product) { OtherProduct.new }

before do
around do |example|
default_currency = MoneyRails::Configuration.default_currency
MoneyRails::Configuration.default_currency = nil
around do |example|
default_currency = Money.default_currency
Money.default_currency = nil

example.run
example.run

MoneyRails::Configuration.default_currency = default_currency
end
Money.default_currency = default_currency
end

it "errors when" do