summaryrefslogtreecommitdiffstats
path: root/test/unit/project_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 16:43:24 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-24 16:43:24 +0000
commit95bd0b64da50b41bc21ea4e2febe849d3647b299 (patch)
tree12d6050b43edd72764e6f29d4ff9cb5c73bf18fa /test/unit/project_test.rb
parenta7824755eeac926b2eabd16b2e002fde426f4141 (diff)
downloadredmine-95bd0b64da50b41bc21ea4e2febe849d3647b299.tar.gz
redmine-95bd0b64da50b41bc21ea4e2febe849d3647b299.zip
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
Diffstat (limited to 'test/unit/project_test.rb')
-rw-r--r--test/unit/project_test.rb18
1 files 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)