FIX: Some specs were leaking state, causing other tests to run in different languages and randomly failing with some seeds.

FIX: Some specs were leaking state, causing other tests to run in different languages and randomly failing with some seeds.

diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 6dfc3e4..23c827e 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -91,6 +91,7 @@ Spork.prefork do
       SiteSetting.enable_system_avatars = false
       SiteSetting.automatically_download_gravatars = false
 
+      I18n.locale = :en
     end
 
     class TestCurrentUserProvider < Auth::DefaultCurrentUserProvider

GitHub sha: 55249750

2 Likes

+1 for the commit message, it has stood the test of time!

1 Like

One lesson I taught myself over time is that short commit messages are not so easy to understand in the future. Now I prefer to put in a lot more effort explaining what the commit does for the future explorers of my code.

2 Likes