]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/SpaceAfterComma in test/unit/project_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:43:24 +0000 (16:43 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 16:43:24 +0000 (16:43 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19262 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_test.rb

index 1b46f48d8334f15866f5a3ce2abd2271776a8023..8fe0b426b5e6e8cfa9ba8186f6a68bd369cb548e 100644 (file)
@@ -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)