summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-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