Skip to content

Commit

Permalink
Merge pull request #691 from tagliala/chore/test-against-ruby-33
Browse files Browse the repository at this point in the history
Test against Ruby 3.3 and fix deprecations
  • Loading branch information
semmons99 authored Mar 13, 2024
2 parents 7cc8e51 + 31c8fe5 commit c572455
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
mongodb-version: ['4.4']
sqlite-version: ['3.0']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Ruby
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
# change this to (see https://github.com/ruby/setup-ruby#versioning):
Expand Down
2 changes: 1 addition & 1 deletion spec/configuration_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
value = Money.new(-12345600, "EUR")
symbol = Money::Currency.find(:eur).symbol

MoneyRails.default_format = {symbol_position: :after}
MoneyRails.default_format = { format: '%n%u' }
expect(value.format).to match(/#{symbol}\z/)

# Override with "classic" format options for backward compatibility
Expand Down
2 changes: 2 additions & 0 deletions spec/dummy/config/initializers/money.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# encoding : utf-8

MoneyRails.configure do |config|
Money.locale_backend = :i18n
Money.rounding_mode = BigDecimal::ROUND_HALF_UP

# To set the default currency
#
Expand Down

0 comments on commit c572455

Please sign in to comment.