Skip to content

Commit 49b26b6

Browse files
committed
Load i18n files when run the tests
1 parent 3b1e40c commit 49b26b6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

test/test_helper.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
Rails.env = 'test'
2626

27+
I18n.load_path += Dir[File.expand_path("../../locales/*.yml", __FILE__)]
28+
I18n.enforce_available_locales = false
29+
2730
JSONAPI.configure do |config|
2831
config.json_key_format = :camelized_key
2932
end

0 commit comments

Comments
 (0)