mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 19:37:31 +02:00
Merged r12277 (#15344).
git-svn-id: http://svn.redmine.org/redmine/branches/2.3-stable@12279 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -2720,6 +2720,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
|
||||
|
||||
Reference in New Issue
Block a user