Skip to content

Commit c572455

Browse files
authored
Merge pull request #691 from tagliala/chore/test-against-ruby-33
Test against Ruby 3.3 and fix deprecations
2 parents 7cc8e51 + 31c8fe5 commit c572455

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

.github/workflows/ruby.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
strategy:
2121
matrix:
22-
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2']
22+
ruby-version: ['2.6', '2.7', '3.0', '3.1', '3.2', '3.3']
2323
mongodb-version: ['4.4']
2424
sqlite-version: ['3.0']
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- name: Set up Ruby
2929
# To automatically get bug fixes and new Ruby versions for ruby/setup-ruby,
3030
# change this to (see https://github.com/ruby/setup-ruby#versioning):

spec/configuration_spec.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
value = Money.new(-12345600, "EUR")
7777
symbol = Money::Currency.find(:eur).symbol
7878

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

8282
# Override with "classic" format options for backward compatibility

spec/dummy/config/initializers/money.rb

+2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# encoding : utf-8
22

33
MoneyRails.configure do |config|
4+
Money.locale_backend = :i18n
5+
Money.rounding_mode = BigDecimal::ROUND_HALF_UP
46

57
# To set the default currency
68
#

0 commit comments

Comments
 (0)