Skip to content

Commit 67eb60e

Browse files
committed
Fix problem that caused some tests to fail depending on the order in which they were executed
1 parent ce29b3c commit 67eb60e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/unit/custom_message_setting_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ def setup
88
User.current = User.find_by(login: 'admin')
99
@custom_message_setting = CustomMessageSetting.find(1)
1010
MessageCustomize::Locale.reload!(['en', 'ja'])
11+
set_language_if_valid 'en'
1112
Rails.application.config.i18n.load_path = (Rails.application.config.i18n.load_path + Dir.glob(Rails.root.join('plugins', 'redmine_message_customize', 'config', 'locales', 'custom_messages', '*.rb'))).uniq
1213
end
1314

0 commit comments

Comments
 (0)