Make sure we restore I18n.locale when tests complete
[rails.git] / test / helpers / application_helper_test.rb
index 46c35f950dee979e34eeb3c0c59a45a7f70ef07d..f9aeb73cc21fe8352d8b04249b9c9e621ce986b6 100644 (file)
@@ -7,6 +7,10 @@ class ApplicationHelperTest < ActionView::TestCase
     I18n.locale = "en"
   end
 
+  def setup
+    I18n.locale = "en"
+  end
+
   def test_linkify
     %w(http://example.com/test ftp://example.com/test https://example.com/test).each do |link|
       text = "Test #{link} is made into a link"