diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 09:32:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2011-12-10 09:32:41 +0000 |
commit | 467503fd4b5ad2b9d03b0161f0b4d313f129d500 (patch) | |
tree | f9c600e5fbee5c91d0217d5a60d64488ef6996b4 /test/functional/projects_controller_test.rb | |
parent | 7dc8cf93401e4f02d993c9aa58e0146b15a84bb9 (diff) | |
download | redmine-467503fd4b5ad2b9d03b0161f0b4d313f129d500.tar.gz redmine-467503fd4b5ad2b9d03b0161f0b4d313f129d500.zip |
Changed ProjectsController#destroy to DELETE only.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8152 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 86f419f15..c882a316a 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -410,17 +410,17 @@ class ProjectsControllerTest < ActionController::TestCase assert_response :method_not_allowed end - def test_get_destroy + def test_destroy_without_confirmation @request.session[:user_id] = 1 # admin - get :destroy, :id => 1 + delete :destroy, :id => 1 assert_response :success assert_template 'destroy' assert_not_nil Project.find_by_id(1) end - def test_post_destroy + def test_destroy @request.session[:user_id] = 1 # admin - post :destroy, :id => 1, :confirm => 1 + delete :destroy, :id => 1, :confirm => 1 assert_redirected_to '/admin/projects' assert_nil Project.find_by_id(1) end |