Refactor: convert many of the custom Issue routes to REST resources.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4041 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -69,7 +69,7 @@ class IssuesTest < ActionController::IntegrationTest
|
||||
log_user('jsmith', 'jsmith')
|
||||
set_tmp_attachments_directory
|
||||
|
||||
put 'issues/1/edit',
|
||||
put 'issues/1',
|
||||
:notes => 'Some notes',
|
||||
:attachments => {'1' => {'file' => uploaded_test_file('testfile.txt', 'text/plain'), 'description' => 'This is an attachment'}}
|
||||
assert_redirected_to "issues/1"
|
||||
|
||||
@@ -91,14 +91,14 @@ class RoutingTest < ActionController::IntegrationTest
|
||||
should_route :post, "/issues/1/quoted", :controller => 'journals', :action => 'new', :id => '1'
|
||||
|
||||
should_route :get, "/issues/calendar", :controller => 'calendars', :action => 'show'
|
||||
should_route :post, "/issues/calendar", :controller => 'calendars', :action => 'show'
|
||||
should_route :put, "/issues/calendar", :controller => 'calendars', :action => 'update'
|
||||
should_route :get, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name'
|
||||
should_route :post, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'show', :project_id => 'project-name'
|
||||
should_route :put, "/projects/project-name/issues/calendar", :controller => 'calendars', :action => 'update', :project_id => 'project-name'
|
||||
|
||||
should_route :get, "/issues/gantt", :controller => 'gantts', :action => 'show'
|
||||
should_route :post, "/issues/gantt", :controller => 'gantts', :action => 'show'
|
||||
should_route :put, "/issues/gantt", :controller => 'gantts', :action => 'update'
|
||||
should_route :get, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name'
|
||||
should_route :post, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'show', :project_id => 'project-name'
|
||||
should_route :put, "/projects/project-name/issues/gantt", :controller => 'gantts', :action => 'update', :project_id => 'project-name'
|
||||
|
||||
should_route :get, "/issues/auto_complete", :controller => 'auto_completes', :action => 'issues'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user