From 95bd0b64da50b41bc21ea4e2febe849d3647b299 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 24 Nov 2019 16:43:24 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/SpaceAfterComma in test/unit/project_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@19262 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_test.rb | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 1b46f48d8..8fe0b426b 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -465,9 +465,9 @@ class ProjectTest < ActiveSupport::TestCase def test_rolled_up_trackers parent = Project.find(1) - parent.trackers = Tracker.find([1,2]) + parent.trackers = Tracker.find([1, 2]) child = parent.children.find(3) - child.trackers = Tracker.find([2,3]) + child.trackers = Tracker.find([2, 3]) assert_equal [1, 2], parent.tracker_ids assert_equal [2, 3], child.trackers.collect(&:id) @@ -481,12 +481,12 @@ class ProjectTest < ActiveSupport::TestCase def test_rolled_up_trackers_should_ignore_archived_subprojects parent = Project.find(1) - parent.trackers = Tracker.find([1,2]) + parent.trackers = Tracker.find([1, 2]) child = parent.children.find(3) - child.trackers = Tracker.find([1,3]) + child.trackers = Tracker.find([1, 3]) parent.children.each(&:archive) - assert_equal [1,2], parent.rolled_up_trackers.collect(&:id) + assert_equal [1, 2], parent.rolled_up_trackers.collect(&:id) end def test_rolled_up_statuses @@ -618,7 +618,7 @@ class ProjectTest < ActiveSupport::TestCase child = parent.children.find(3) private_child = parent.children.find(5) - assert_equal [1,2,3], parent.version_ids.sort + assert_equal [1, 2, 3], parent.version_ids.sort assert_equal [4], child.version_ids assert_equal [6], private_child.version_ids assert_equal [7], Version.where(:sharing => 'system').collect(&:id) @@ -628,7 +628,7 @@ class ProjectTest < ActiveSupport::TestCase assert_kind_of Version, version end - assert_equal [1,2,3,4,6,7], parent.shared_versions.collect(&:id).sort + assert_equal [1, 2, 3, 4, 6, 7], parent.shared_versions.collect(&:id).sort end def test_shared_versions_should_ignore_archived_subprojects @@ -637,7 +637,7 @@ class ProjectTest < ActiveSupport::TestCase child.archive parent.reload - assert_equal [1,2,3], parent.version_ids.sort + assert_equal [1, 2, 3], parent.version_ids.sort assert_equal [4], child.version_ids assert !parent.shared_versions.collect(&:id).include?(4) end @@ -647,7 +647,7 @@ class ProjectTest < ActiveSupport::TestCase parent = Project.find(1) child = parent.children.find(5) - assert_equal [1,2,3], parent.version_ids.sort + assert_equal [1, 2, 3], parent.version_ids.sort assert_equal [6], child.version_ids versions = parent.shared_versions.visible(user) -- 2.39.5