Reset locale after tests which change it finish

This commit is contained in:
Tom Hughes 2015-02-28 07:38:12 +00:00
parent 8cf82ea658
commit 5ab7591d9c

View 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"