X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/fc9df968fc1403a2130e5774552c430b2c0acf59..799b6d4cc72cc339679f5f458d98504c36b49aa1:/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