From f595197ecfd57e7c3a61564d7409dfed88a50eff Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 21 Jul 2011 15:51:58 +0000 Subject: 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 --- test/functional/projects_controller_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/functional/projects_controller_test.rb') diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index bc0de15a0..bdff70c22 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -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 -- cgit v1.2.3