@@ -206,7 +206,7 ActionController::Routing::Routes.draw do |map| | |||||
206 | project_actions.connect 'projects/new', :action => 'add' |
|
206 | project_actions.connect 'projects/new', :action => 'add' | |
207 | project_actions.connect 'projects', :action => 'add' |
|
207 | project_actions.connect 'projects', :action => 'add' | |
208 | project_actions.connect 'projects.:format', :action => 'add', :format => /xml/ |
|
208 | project_actions.connect 'projects.:format', :action => 'add', :format => /xml/ | |
209 | project_actions.connect 'projects/:id/:action', :action => /destroy|archive|unarchive/ |
|
209 | project_actions.connect 'projects/:id/:action', :action => /edit|destroy|archive|unarchive/ | |
210 | project_actions.connect 'projects/:id/files/new', :action => 'add_file' |
|
210 | project_actions.connect 'projects/:id/files/new', :action => 'add_file' | |
211 | project_actions.connect 'projects/:id/versions/new', :action => 'add_version' |
|
211 | project_actions.connect 'projects/:id/versions/new', :action => 'add_version' | |
212 | project_actions.connect 'projects/:id/categories/new', :action => 'add_issue_category' |
|
212 | project_actions.connect 'projects/:id/categories/new', :action => 'add_issue_category' |
@@ -313,6 +313,13 class ProjectsControllerTest < ActionController::TestCase | |||||
313 | assert_template 'settings' |
|
313 | assert_template 'settings' | |
314 | end |
|
314 | end | |
315 |
|
315 | |||
|
316 | def test_edit_routing | |||
|
317 | assert_routing( | |||
|
318 | {:method => :post, :path => '/projects/4223/edit'}, | |||
|
319 | :controller => 'projects', :action => 'edit', :id => '4223' | |||
|
320 | ) | |||
|
321 | end | |||
|
322 | ||||
316 | def test_edit |
|
323 | def test_edit | |
317 | @request.session[:user_id] = 2 # manager |
|
324 | @request.session[:user_id] = 2 # manager | |
318 | post :edit, :id => 1, :project => {:name => 'Test changed name', |
|
325 | post :edit, :id => 1, :project => {:name => 'Test changed name', |
General Comments 0
You need to be logged in to leave comments.
Login now