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/ui | |
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/ui')
-rw-r--r-- | test/ui/issues_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/ui/issues_test.rb b/test/ui/issues_test.rb index 3a628c9b6..66a6197bb 100644 --- a/test/ui/issues_test.rb +++ b/test/ui/issues_test.rb @@ -172,6 +172,19 @@ class Redmine::UiTest::IssuesTest < Redmine::UiTest::Base assert_equal 'CF value', issue.custom_field_value(field) end + def test_remove_issue_watcher_from_sidebar + user = User.find(3) + Watcher.create!(:watchable => Issue.find(1), :user => user) + + log_user('jsmith', 'jsmith') + visit '/issues/1' + assert page.first('#sidebar').has_content?(user.name) + assert_difference 'Watcher.count', -1 do + page.first('ul.watchers .user-3 a.delete').click + end + assert page.first('#sidebar').has_no_content?(user.name) + end + def test_watch_issue_via_context_menu log_user('jsmith', 'jsmith') visit '/issues' |