RSpec: Ensure that locales are present for i18n-js

This commit is contained in:
Sebastian Serth
2023-11-16 14:26:24 +01:00
committed by Sebastian Serth
parent f733ee580a
commit 7f30fbe221

View File

@ -0,0 +1,9 @@
# frozen_string_literal: true
RSpec.configure do |config|
config.before(:suite) do
# In local development, we do not want to precompile assets explicitly.
# Therefore, we might need to export the translations before running the tests.
system('bundle exec i18n export') if ENV['CI'].blank?
end
end