Test the index page with all locales to make sure missing frontend locale files aren't fatal

This commit is contained in:
Jyri-Petteri Paloposki 2022-08-11 22:53:59 +03:00
parent 0b167bade4
commit e669a18733
3 changed files with 33 additions and 11 deletions

View file

@ -109,6 +109,17 @@ end
class ActionDispatch::IntegrationTest
def logs_in_as(user, plain_pass)
@user = user
post "/login", params: { :user_login => @user.login,
:user_password => plain_pass,
:user_noexpiry => 'n' }
assert_response :redirect
follow_redirect!
assert_response :success
assert_template "todos/index"
end
def authenticated_post_xml(url, username, password, parameters, headers = {})
post url, params: parameters, headers:
{ 'HTTP_AUTHORIZATION' => "Basic " + Base64.encode64("#{username}:#{password}"),