diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-16 17:20:41 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-01-16 17:20:41 +0000 |
commit | ffa6c5fe3e1eb67fca0d965ca45a06c56921276d (patch) | |
tree | cb8a2f40fead6826a1a8468d172bb67b4a12272e /test | |
parent | d28d2d5ab8be4f54eb79f71be301edb659eb87ba (diff) | |
download | redmine-ffa6c5fe3e1eb67fca0d965ca45a06c56921276d.tar.gz redmine-ffa6c5fe3e1eb67fca0d965ca45a06c56921276d.zip |
Adds a 'Create and continue' button on the new issue form, that will create the issue and display the form again (#2523).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2265 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 14afd68d1..093797e38 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -313,6 +313,16 @@ class IssuesControllerTest < Test::Unit::TestCase assert_equal 'Value for field 2', v.value end + def test_post_new_and_continue + @request.session[:user_id] = 2 + post :new, :project_id => 1, + :issue => {:tracker_id => 3, + :subject => 'This is first issue', + :priority_id => 5}, + :continue => '' + assert_redirected_to :controller => 'issues', :action => 'new', :tracker_id => 3 + end + def test_post_new_without_custom_fields_param @request.session[:user_id] = 2 post :new, :project_id => 1, |