Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
c960657 committed Nov 3, 2023
1 parent 1eae4e7 commit 9fb6e1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/unit/ordinals_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,10 @@
# Mock Rails app in order to trigger the Railtie
let(:app) { double :app, config: config }
let(:config) { double :config, eager_load_namespaces: [], i18n: I18n, rails_i18n: RailsI18n }
let(:period_locales) { %w[be bs cs da de eo et fa fi hr hu is ka lb lt lv mk nb ne nn pl sk sl sq sr sw tr] }

before do
I18n.available_locales = %w[fr en fr-CA fr-CH fr-FR gd]
I18n.available_locales = %w[fr en fr-CA fr-CH fr-FR gd]+ period_locales

RailsI18n::Railtie.initializers.each { |init| init.run(app) }
I18n.backend.reload!
Expand Down

0 comments on commit 9fb6e1d

Please sign in to comment.