mirror of
https://github.com/redmine/redmine.git
synced 2026-03-17 01:50:58 +01:00
Merged r4185 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.0-stable@4203 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -389,6 +389,17 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||
assert_redirected_to :controller => 'admin', :action => 'projects'
|
||||
end
|
||||
|
||||
context "POST :copy" do
|
||||
should "TODO: test the rest of the method"
|
||||
|
||||
should "redirect to the project settings when successful" do
|
||||
@request.session[:user_id] = 1 # admin
|
||||
post :copy, :id => 1, :project => {:name => 'Copy', :identifier => 'unique-copy'}
|
||||
assert_response :redirect
|
||||
assert_redirected_to :controller => 'projects', :action => 'settings'
|
||||
end
|
||||
end
|
||||
|
||||
def test_jump_should_redirect_to_active_tab
|
||||
get :show, :id => 1, :jump => 'issues'
|
||||
assert_redirected_to 'projects/ecookbook/issues'
|
||||
|
||||
Reference in New Issue
Block a user