Reset locale after tests which change it finish
This commit is contained in:
parent
8cf82ea658
commit
5ab7591d9c
1 changed files with 4 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue