RSpec: Ensure that locales are present for i18n-js
This commit is contained in:

committed by
Sebastian Serth

parent
f733ee580a
commit
7f30fbe221
9
spec/support/i18n_export.rb
Normal file
9
spec/support/i18n_export.rb
Normal 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
|
Reference in New Issue
Block a user