From a0158eff9643b836488bf40667669d07d8653429 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 30 Jan 2013 20:51:21 +0000 Subject: Add/remove issue watchers via the REST API (#6727). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11290 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/routing/watchers_test.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'test/integration/routing') diff --git a/test/integration/routing/watchers_test.rb b/test/integration/routing/watchers_test.rb index 1b8b629b7..3c203f4bc 100644 --- a/test/integration/routing/watchers_test.rb +++ b/test/integration/routing/watchers_test.rb @@ -47,5 +47,15 @@ class RoutingWatchersTest < ActionController::IntegrationTest { :method => 'post', :path => "/watchers/unwatch" }, { :controller => 'watchers', :action => 'unwatch' } ) + assert_routing( + { :method => 'post', :path => "/issues/12/watchers.xml" }, + { :controller => 'watchers', :action => 'create', + :object_type => 'issue', :object_id => '12', :format => 'xml' } + ) + assert_routing( + { :method => 'delete', :path => "/issues/12/watchers/3.xml" }, + { :controller => 'watchers', :action => 'destroy', + :object_type => 'issue', :object_id => '12', :user_id => '3', :format => 'xml'} + ) end end -- cgit v1.2.3