mirror of
https://github.com/redmine/redmine.git
synced 2026-04-02 02:31:17 +02:00
Merge r24491 from trunk to 6.0-stable (#43869).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@24493 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -4180,6 +4180,25 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
end
|
||||
|
||||
def test_update_form_for_new_issue_should_show_category_default_assignee_when_changing_category
|
||||
@request.session[:user_id] = 2
|
||||
post(
|
||||
:new,
|
||||
:params => {
|
||||
:project_id => 1,
|
||||
:issue => {
|
||||
:category_id => 1
|
||||
},
|
||||
:form_update_triggered_by => 'issue_category_id'
|
||||
},
|
||||
:xhr => true
|
||||
)
|
||||
assert_response :success
|
||||
# Browsers prefer option[label] over inner text, so the blank label must be removed.
|
||||
assert_includes @response.body, ".removeAttr('label')"
|
||||
assert_includes @response.body, "John Smith"
|
||||
end
|
||||
|
||||
def test_post_create
|
||||
@request.session[:user_id] = 2
|
||||
assert_difference 'Issue.count' do
|
||||
@@ -8892,4 +8911,6 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user