diff options
author | Go MAEDA <maeda@farend.jp> | 2018-06-10 00:16:58 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-06-10 00:16:58 +0000 |
commit | 317ebfb100b4d25d13ec1329d636b67d5adbcc6e (patch) | |
tree | 157a6768dd2483a3335c6210a1b1cbe75c88aa14 /test/functional/issues_controller_test.rb | |
parent | b4d3715dc0f6bd16a5ff491997846b2242334812 (diff) | |
download | redmine-317ebfb100b4d25d13ec1329d636b67d5adbcc6e.tar.gz redmine-317ebfb100b4d25d13ec1329d636b67d5adbcc6e.zip |
Fix: Unreachable code in QueriesControllerTest#test_bulk_copy_to_another_project.
git-svn-id: http://svn.redmine.org/redmine/trunk@17372 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index d045f92db..9f79908eb 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -5967,10 +5967,11 @@ class IssuesControllerTest < Redmine::ControllerTest def test_bulk_copy_to_another_project @request.session[:user_id] = 2 - assert_difference 'Issue.count', 2 do + issue_ids = [1, 2] + assert_difference 'Issue.count', issue_ids.size do assert_no_difference 'Project.find(1).issues.count' do post :bulk_update, :params => { - :ids => [1, 2], + :ids => issue_ids, :issue => { :project_id => '2' }, @@ -5980,7 +5981,7 @@ class IssuesControllerTest < Redmine::ControllerTest end assert_redirected_to '/projects/ecookbook/issues' - copies = Issue.order('id DESC').limit(issues.size) + copies = Issue.order('id DESC').limit(issue_ids.size) copies.each do |copy| assert_equal 2, copy.project_id end |