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:
Jean-Philippe Lang
2010-01-14 22:19:53 +00:00
parent 68a4cd38f5
commit dfe447f841
2 changed files with 8 additions and 1 deletions

View File

@@ -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',