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
This commit is contained in:
@@ -19,16 +19,22 @@ 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' }
|
||||
|
||||
Reference in New Issue
Block a user