diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-09 18:37:16 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-09 18:37:16 +0000 |
commit | 1b1c510ff99cfca216082926e5ce9e2e981b2506 (patch) | |
tree | ae25be505ae388435276a44a7755186c70ebe5e7 /test/integration/routing | |
parent | c22f60271f7c6726a28b2a319041c11b2a782b5e (diff) | |
download | redmine-1b1c510ff99cfca216082926e5ce9e2e981b2506.tar.gz redmine-1b1c510ff99cfca216082926e5ce9e2e981b2506.zip |
Ability to add non-member users as watchers (#5159).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8592 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/routing')
-rw-r--r-- | test/integration/routing/watchers_test.rb | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/test/integration/routing/watchers_test.rb b/test/integration/routing/watchers_test.rb index 4cd12ffca..441d2533c 100644 --- a/test/integration/routing/watchers_test.rb +++ b/test/integration/routing/watchers_test.rb @@ -19,17 +19,23 @@ require File.expand_path('../../../test_helper', __FILE__) class RoutingWatchersTest < ActionController::IntegrationTest def test_watchers - ["get", "post"].each do |method| - assert_routing( - { :method => method, :path => "/watchers/new" }, - { :controller => 'watchers', :action => 'new' } - ) - end + assert_routing( + { :method => 'get', :path => "/watchers/new" }, + { :controller => 'watchers', :action => 'new' } + ) + assert_routing( + { :method => 'post', :path => "/watchers" }, + { :controller => 'watchers', :action => 'create' } + ) assert_routing( { :method => 'post', :path => "/watchers/destroy" }, { :controller => 'watchers', :action => 'destroy' } ) assert_routing( + { :method => 'get', :path => "/watchers/autocomplete_for_user" }, + { :controller => 'watchers', :action => 'autocomplete_for_user' } + ) + assert_routing( { :method => 'post', :path => "/watchers/watch" }, { :controller => 'watchers', :action => 'watch' } ) |