X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/7b384f03ab1d34fd3ebcc5ae3add25b3b5591e2e..14bc538681ca1e6b54dc2da67718e67ea6e1ec04:/test/integration/client_application_test.rb diff --git a/test/integration/client_application_test.rb b/test/integration/client_application_test.rb index 8e08cbda0..9ab32ca78 100644 --- a/test/integration/client_application_test.rb +++ b/test/integration/client_application_test.rb @@ -12,11 +12,14 @@ class ClientApplicationTest < ActionController::IntegrationTest assert_redirected_to "controller" => "user", "action" => "login", "cookie_test" => "true" follow_redirect! assert_response :success - post '/login', {'user[email]' => "test@example.com", 'user[password]' => "test", :referer => '/user/test2'} + post '/login', {'username' => "test@example.com", 'password' => "test", :referer => '/user/test2'} assert_response :redirect follow_redirect! assert_response :success assert_template 'user/view' + get '/user/test2/account' + assert_response :success + assert_template 'user/account' # check that the form to allow new client application creations exists assert_in_body do