X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/3666b674330ec8d14a224932a191d6121c5974e2..01b84a810703041bc4a5011068214c92de0a5bec:/test/integration/page_locale_test.rb diff --git a/test/integration/page_locale_test.rb b/test/integration/page_locale_test.rb index 2c4939b05..239c1d847 100644 --- a/test/integration/page_locale_test.rb +++ b/test/integration/page_locale_test.rb @@ -12,6 +12,8 @@ class PageLocaleTest < ActionDispatch::IntegrationTest def test_defaulting user = create(:user, :languages => []) + get "/login" + follow_redirect! post "/login", :params => { :username => user.email, :password => "test" } follow_redirect! @@ -33,6 +35,8 @@ class PageLocaleTest < ActionDispatch::IntegrationTest get "/diary", :params => { :locale => "es" } assert_select "html[lang=?]", "es" + get "/login" + follow_redirect! post "/login", :params => { :username => user.email, :password => "test" } follow_redirect!