Skip to content

Commit

Permalink
Work around issue with the combination of I18n and JRuby
Browse files Browse the repository at this point in the history
  • Loading branch information
mvz committed Feb 21, 2021
1 parent cd07abc commit a59b308
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@

require "factory_bot"

if RUBY_ENGINE == "jruby"
# Workaround for issue in I18n/JRuby combo.
# See https://github.com/jruby/jruby/issues/6547 and
# https://github.com/ruby-i18n/i18n/issues/555
require "i18n/backend"
require "i18n/backend/simple"
end

Dir["spec/support/**/*.rb"].each { |f| require File.expand_path(f) }

RSpec.configure do |config|
Expand Down

0 comments on commit a59b308

Please sign in to comment.