summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-21 15:51:58 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-07-21 15:51:58 +0000
commitf595197ecfd57e7c3a61564d7409dfed88a50eff (patch)
tree96dadbfac3196f7d52be7de63f604abdd113a0cc /test/functional/projects_controller_test.rb
parented23149a6c1849e52c5e085a42321295d639fa55 (diff)
downloadredmine-f595197ecfd57e7c3a61564d7409dfed88a50eff.tar.gz
redmine-f595197ecfd57e7c3a61564d7409dfed88a50eff.zip
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
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb7
1 files changed, 7 insertions, 0 deletions
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