]> source.dussan.org Git - redmine.git/commitdiff
Fixed test after r11343.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2013 17:52:19 +0000 (17:52 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 10 Feb 2013 17:52:19 +0000 (17:52 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11346 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/helpers/watchers_helper_test.rb

index 1f541d709ce580ebc721e37413645099fcb9d55a..ce45274693dbbab8c58de64e6ab7fc021ef22df7 100644 (file)
@@ -61,8 +61,8 @@ class WatchersHelperTest < ActionView::TestCase
 
     expected = link_to(
       "Unwatch",
-      "/watchers/unwatch?object_id=1&object_type=issue",
-      :remote => true, :method => 'post', :class => "issue-1-watcher icon icon-fav"
+      "/watchers/watch?object_id=1&object_type=issue",
+      :remote => true, :method => 'delete', :class => "issue-1-watcher icon icon-fav"
     )
     assert_equal expected, watcher_link(Issue.find(1), User.find(1))
   end