Merged r4070 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4140 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -318,9 +318,9 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||
assert_template 'settings'
|
||||
end
|
||||
|
||||
def test_edit
|
||||
def test_update
|
||||
@request.session[:user_id] = 2 # manager
|
||||
post :edit, :id => 1, :project => {:name => 'Test changed name',
|
||||
post :update, :id => 1, :project => {:name => 'Test changed name',
|
||||
:issue_custom_field_ids => ['']}
|
||||
assert_redirected_to 'projects/ecookbook/settings'
|
||||
project = Project.find(1)
|
||||
|
||||
@@ -180,14 +180,14 @@ class RoutingTest < ActionController::IntegrationTest
|
||||
|
||||
should_route :post, "/projects/new", :controller => 'projects', :action => 'create'
|
||||
should_route :post, "/projects.xml", :controller => 'projects', :action => 'create', :format => 'xml'
|
||||
should_route :post, "/projects/4223/edit", :controller => 'projects', :action => 'edit', :id => '4223'
|
||||
should_route :post, "/projects/4223/edit", :controller => 'projects', :action => 'update', :id => '4223'
|
||||
should_route :post, "/projects/64/destroy", :controller => 'projects', :action => 'destroy', :id => '64'
|
||||
should_route :post, "/projects/33/files/new", :controller => 'files', :action => 'new', :id => '33'
|
||||
should_route :post, "/projects/64/archive", :controller => 'projects', :action => 'archive', :id => '64'
|
||||
should_route :post, "/projects/64/unarchive", :controller => 'projects', :action => 'unarchive', :id => '64'
|
||||
should_route :post, "/projects/64/activities/save", :controller => 'project_enumerations', :action => 'save', :id => '64'
|
||||
|
||||
should_route :put, "/projects/1.xml", :controller => 'projects', :action => 'edit', :id => '1', :format => 'xml'
|
||||
should_route :put, "/projects/1.xml", :controller => 'projects', :action => 'update', :id => '1', :format => 'xml'
|
||||
|
||||
should_route :delete, "/projects/1.xml", :controller => 'projects', :action => 'destroy', :id => '1', :format => 'xml'
|
||||
should_route :delete, "/projects/64/reset_activities", :controller => 'project_enumerations', :action => 'destroy', :id => '64'
|
||||
|
||||
Reference in New Issue
Block a user