mirror of
https://github.com/redmine/redmine.git
synced 2026-06-16 00:00:05 +02:00
Adds a 'Create and continue' button on project form.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6303 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -186,6 +186,13 @@ class ProjectsControllerTest < ActionController::TestCase
|
||||
assert_kind_of Project, project
|
||||
assert_equal Project.find(1), project.parent
|
||||
end
|
||||
|
||||
should "continue" do
|
||||
assert_difference 'Project.count' do
|
||||
post :create, :project => {:name => "blog", :identifier => "blog"}, :continue => 'Create and continue'
|
||||
end
|
||||
assert_redirected_to '/projects/new?'
|
||||
end
|
||||
end
|
||||
|
||||
context "by non-admin user with add_project permission" do
|
||||
|
||||
Reference in New Issue
Block a user