Reset locale after tests which change it finish
authorTom Hughes <tom@compton.nu>
Sat, 28 Feb 2015 07:38:12 +0000 (07:38 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 28 Feb 2015 07:38:12 +0000 (07:38 +0000)
test/helpers/application_helper_test.rb

index e48b84e4c56e11b8c44e97213b7c4bc421a6aed1..4dce09c1c46fdab644bd6b2a387613254b53fc43 100644 (file)
@@ -7,6 +7,10 @@ class ApplicationHelperTest < ActionView::TestCase
     I18n.locale = "en"
   end
 
+  def teardown
+    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"