diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 00:23:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-03-21 00:23:46 +0000 |
commit | b29c48717d8da9a8f72b92e7c7c0eef9d00951d9 (patch) | |
tree | bbc005238054a06d9ce2617de034bd928aae58f9 /test/functional/watchers_controller_test.rb | |
parent | b109fff281ebeaa22fd969a7d8fa51f48a3a271f (diff) | |
download | redmine-b29c48717d8da9a8f72b92e7c7c0eef9d00951d9.tar.gz redmine-b29c48717d8da9a8f72b92e7c7c0eef9d00951d9.zip |
Fixed: Error generated on 'search for watchers to add' after clicking add without selected users (#14298).
git-svn-id: http://svn.redmine.org/redmine/trunk@12985 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/watchers_controller_test.rb')
-rw-r--r-- | test/functional/watchers_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb index 8ec2aa112..dc72a9b6b 100644 --- a/test/functional/watchers_controller_test.rb +++ b/test/functional/watchers_controller_test.rb @@ -237,6 +237,13 @@ class WatchersControllerTest < ActionController::TestCase end end + def test_append_without_user_should_render_nothing + @request.session[:user_id] = 2 + xhr :post, :append, :project_id => 'ecookbook' + assert_response :success + assert response.body.blank? + end + def test_remove_watcher @request.session[:user_id] = 2 assert_difference('Watcher.count', -1) do |