Skip to content

stop setting USD as default currency#1143

Merged
yukideluxe merged 3 commits intomainfrom
jl-stop-setting-default-currency
Jul 23, 2025
Merged

stop setting USD as default currency#1143
yukideluxe merged 3 commits intomainfrom
jl-stop-setting-default-currency

Conversation

@yukideluxe
Copy link
Member

Hello @RubyMoney/core and everyone watching this 👀

Time for another round of deprecation cleanup 🧹🧹🧹

Now that this PR has been merged, we can stop setting USD as the default currency, which was already anticipated back in 2019.

It's about time we finally pull the trigger 💪🏻

end

it_behaves_like 'instance with custom bank', :+, Money.new(1)
it_behaves_like 'instance with custom bank', :+, -> { Money.new(1) }
Copy link
Member Author

@yukideluxe yukideluxe Jul 13, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To simplify the changes, I am setting the default currency as USD in a before suite :each (EDITED 6c1d7c7) callback. That said, these initializations were failing because they run on loading the spec before the callback is run so they need to be lazy loaded. I have very little knowledge about rspec, and I used Copilot to figure out the error. I could have passed the currency here instead, but I think this is more proper? 🤔

@yukideluxe yukideluxe force-pushed the jl-remove-infinite-precision-deprecation branch from c5a365d to ef3ed15 Compare July 14, 2025 17:27
@yukideluxe yukideluxe force-pushed the jl-stop-setting-default-currency branch from d2e0005 to a43e502 Compare July 14, 2025 17:27
Copy link
Member

@sunny sunny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥

Base automatically changed from jl-remove-infinite-precision-deprecation to main July 22, 2025 17:25
yukideluxe and others added 2 commits July 22, 2025 19:27
@yukideluxe yukideluxe force-pushed the jl-stop-setting-default-currency branch 3 times, most recently from 61c1c5f to aeb1f19 Compare July 23, 2025 12:45
@yukideluxe yukideluxe force-pushed the jl-stop-setting-default-currency branch from aeb1f19 to 6c1d7c7 Compare July 23, 2025 12:48
@yukideluxe yukideluxe merged commit a2c4bae into main Jul 23, 2025
6 checks passed
@yukideluxe yukideluxe deleted the jl-stop-setting-default-currency branch July 23, 2025 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants