summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-12 15:45:45 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-03-12 15:45:45 +0000
commit6764839ede659afcd789e754adf220a37fd9e8ea (patch)
treeb8312d2cf3180d3cb1553be77a84ccae5a08ad41
parente0ae0f287a5f7e439869bd11367222928f21a624 (diff)
downloadredmine-6764839ede659afcd789e754adf220a37fd9e8ea.tar.gz
redmine-6764839ede659afcd789e754adf220a37fd9e8ea.zip
Tests broken by r15223 (#22127).
git-svn-id: http://svn.redmine.org/redmine/trunk@15225 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/issues_controller_test.rb20
1 files changed, 11 insertions, 9 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index a23e632e1..a4a461019 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -3868,13 +3868,15 @@ class IssuesControllerTest < ActionController::TestCase
@request.session[:user_id] = 2
# update issues assignee
- post :bulk_update, :ids => [1, 2], :notes => 'Bulk editing',
- :issue => {:priority_id => '',
- :assigned_to_id => group.id,
- :custom_field_values => {'2' => ''}}
-
- assert_response 302
- assert_equal [group, group], Issue.where(:id => [1, 2]).collect {|i| i.assigned_to}
+ with_settings :issue_group_assignment => '1' do
+ post :bulk_update, :ids => [1, 2], :notes => 'Bulk editing',
+ :issue => {:priority_id => '',
+ :assigned_to_id => group.id,
+ :custom_field_values => {'2' => ''}}
+
+ assert_response 302
+ assert_equal [group, group], Issue.where(:id => [1, 2]).collect {|i| i.assigned_to}
+ end
end
def test_bulk_update_on_different_projects
@@ -4258,7 +4260,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_no_difference 'Project.find(1).issues.count' do
post :bulk_update, :ids => [1, 2], :copy => '1',
:issue => {
- :project_id => '2', :tracker_id => '', :assigned_to_id => '4',
+ :project_id => '2', :tracker_id => '', :assigned_to_id => '2',
:status_id => '1', :start_date => '2009-12-01', :due_date => '2009-12-31'
}
end
@@ -4268,7 +4270,7 @@ class IssuesControllerTest < ActionController::TestCase
assert_equal 2, copied_issues.size
copied_issues.each do |issue|
assert_equal 2, issue.project_id, "Project is incorrect"
- assert_equal 4, issue.assigned_to_id, "Assigned to is incorrect"
+ assert_equal 2, issue.assigned_to_id, "Assigned to is incorrect"
assert_equal 1, issue.status_id, "Status is incorrect"
assert_equal '2009-12-01', issue.start_date.to_s, "Start date is incorrect"
assert_equal '2009-12-31', issue.due_date.to_s, "Due date is incorrect"