diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-20 20:43:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-20 20:43:28 +0000 |
commit | aca31973c28110047efd30537d5266b4c8987080 (patch) | |
tree | a107a050b2678f9dec581658c21807806406f50f /test/functional/watchers_controller_test.rb | |
parent | f8c649320f849dec288407a771d446108dc40931 (diff) | |
download | redmine-aca31973c28110047efd30537d5266b4c8987080.tar.gz redmine-aca31973c28110047efd30537d5266b4c8987080.zip |
Fixed that delete watcher link was broken by r11290 (#13231).
Deleting a watcher now use DELETE /watchers instead of POST /watchers/destroy.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11443 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/watchers_controller_test.rb')
-rw-r--r-- | test/functional/watchers_controller_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb index 7c80b0f4b..bc8b58b0c 100644 --- a/test/functional/watchers_controller_test.rb +++ b/test/functional/watchers_controller_test.rb @@ -186,7 +186,7 @@ class WatchersControllerTest < ActionController::TestCase def test_remove_watcher @request.session[:user_id] = 2 assert_difference('Watcher.count', -1) do - xhr :post, :destroy, :object_type => 'issue', :object_id => '2', :user_id => '3' + xhr :delete, :destroy, :object_type => 'issue', :object_id => '2', :user_id => '3' assert_response :success assert_match /watchers/, response.body end |