X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e1f79d84adc413afa2a1a8d8d06fda9fa5151d49..34e3e51456774127d43408b7ab65c24f41373f62:/test/controllers/oauth_clients_controller_test.rb diff --git a/test/controllers/oauth_clients_controller_test.rb b/test/controllers/oauth_clients_controller_test.rb index a1df9f0f2..5b2c5b6e4 100644 --- a/test/controllers/oauth_clients_controller_test.rb +++ b/test/controllers/oauth_clients_controller_test.rb @@ -89,8 +89,8 @@ class OauthClientsControllerTest < ActionController::TestCase } end assert_response :success - assert_template "new" - + assert_template "new" + assert_difference "ClientApplication.count", 1 do post :create, { :display_name => user.display_name, @@ -161,7 +161,7 @@ class OauthClientsControllerTest < ActionController::TestCase assert_template "not_found" put :update, { - :display_name => user.display_name, + :display_name => user.display_name, :id => client.id, :client_application => { :name => "New Name", @@ -174,7 +174,7 @@ class OauthClientsControllerTest < ActionController::TestCase assert_template "edit" put :update, { - :display_name => user.display_name, + :display_name => user.display_name, :id => client.id, :client_application => { :name => "New Name",