diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-15 19:59:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-15 19:59:19 +0000 |
commit | 71c61f4996aed44f3b89d66e5a2a0e86b32f3888 (patch) | |
tree | 6e323b5214cbf9179c1cee288bc9486ef2565ac6 /test | |
parent | 8910b7c605833255df8e7d04f73b3b5ddfc7342f (diff) | |
download | redmine-71c61f4996aed44f3b89d66e5a2a0e86b32f3888.tar.gz redmine-71c61f4996aed44f3b89d66e5a2a0e86b32f3888.zip |
Fixed that update_form always proposes the default status when updating an existing issue (#15344).
git-svn-id: http://svn.redmine.org/redmine/trunk@12277 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 34c99a568..d9c1e40da 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -2728,6 +2728,16 @@ class IssuesControllerTest < ActionController::TestCase assert_equal 'This is the test_new issue', issue.subject end + def test_update_form_should_propose_default_status_for_existing_issue + @request.session[:user_id] = 2 + WorkflowTransition.delete_all + WorkflowTransition.create!(:role_id => 1, :tracker_id => 2, :old_status_id => 2, :new_status_id => 3) + + xhr :put, :update_form, :project_id => 1, :id => 2 + assert_response :success + assert_equal [2,3], assigns(:allowed_statuses).map(&:id).sort + end + def test_put_update_without_custom_fields_param @request.session[:user_id] = 2 ActionMailer::Base.deliveries.clear |