mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-26 18:56:10 +01:00
Test the index page with all locales to make sure missing frontend locale files aren't fatal
This commit is contained in:
parent
0b167bade4
commit
e669a18733
3 changed files with 33 additions and 11 deletions
|
|
@ -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}"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue