X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3debff60ef50158c5439003ad4357d1f3dcc120b..63e4a89323f4b0dba5e64b227f3e8508c94373b6:/test/integration/page_locale_test.rb diff --git a/test/integration/page_locale_test.rb b/test/integration/page_locale_test.rb index 239c1d847..c8e5026d4 100644 --- a/test/integration/page_locale_test.rb +++ b/test/integration/page_locale_test.rb @@ -1,14 +1,6 @@ require "test_helper" class PageLocaleTest < ActionDispatch::IntegrationTest - def setup - I18n.locale = "en" - end - - def teardown - I18n.locale = "en" - end - def test_defaulting user = create(:user, :languages => []) @@ -18,7 +10,7 @@ class PageLocaleTest < ActionDispatch::IntegrationTest follow_redirect! get "/diary/new" - assert_equal [], User.find(user.id).languages + assert_empty User.find(user.id).languages assert_select "html[lang=?]", "en" get "/diary/new", :headers => { "HTTP_ACCEPT_LANGUAGE" => "fr, en" }