Fixes project editing route broken by r3313.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3314 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
68a4cd38f5
commit
dfe447f841
|
@ -206,7 +206,7 @@ ActionController::Routing::Routes.draw do |map|
|
|||
project_actions.connect 'projects/new', :action => 'add'
|
||||
project_actions.connect 'projects', :action => 'add'
|
||||
project_actions.connect 'projects.:format', :action => 'add', :format => /xml/
|
||||
project_actions.connect 'projects/:id/:action', :action => /destroy|archive|unarchive/
|
||||
project_actions.connect 'projects/:id/:action', :action => /edit|destroy|archive|unarchive/
|
||||
project_actions.connect 'projects/:id/files/new', :action => 'add_file'
|
||||
project_actions.connect 'projects/:id/versions/new', :action => 'add_version'
|
||||
project_actions.connect 'projects/:id/categories/new', :action => 'add_issue_category'
|
||||
|
|
|
@ -313,6 +313,13 @@ class ProjectsControllerTest < ActionController::TestCase
|
|||
assert_template 'settings'
|
||||
end
|
||||
|
||||
def test_edit_routing
|
||||
assert_routing(
|
||||
{:method => :post, :path => '/projects/4223/edit'},
|
||||
:controller => 'projects', :action => 'edit', :id => '4223'
|
||||
)
|
||||
end
|
||||
|
||||
def test_edit
|
||||
@request.session[:user_id] = 2 # manager
|
||||
post :edit, :id => 1, :project => {:name => 'Test changed name',
|
||||
|
|
Loading…
Reference in New Issue