summaryrefslogtreecommitdiffstats
path: root/test/unit/changeset_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 15:12:01 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-23 15:12:01 +0000
commitc19550ddc139cad030c6b6498f0854dd14912cfd (patch)
treef4c89da92245b8861742a4742558c5230a889568 /test/unit/changeset_test.rb
parent1c319946d1a483a5de508969946898cf7bf9d879 (diff)
downloadredmine-c19550ddc139cad030c6b6498f0854dd14912cfd.tar.gz
redmine-c19550ddc139cad030c6b6498f0854dd14912cfd.zip
cleanup: rubocop: fix Layout/SpaceAfterComma in test/unit/changeset_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19217 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/changeset_test.rb')
-rw-r--r--test/unit/changeset_test.rb15
1 files changed, 11 insertions, 4 deletions
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index e116882e7..982ab62d3 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -170,7 +170,7 @@ class ChangesetTest < ActiveSupport::TestCase
:comments => '[#1 #2, #3] Worked on these',
:revision => '12345')
assert c.save
- assert_equal [1,2,3], c.issue_ids.sort
+ assert_equal [1, 2, 3], c.issue_ids.sort
end
def test_ref_keywords_with_large_number_should_not_error
@@ -190,7 +190,11 @@ class ChangesetTest < ActiveSupport::TestCase
with_settings :commit_update_keywords => [{'keywords' => 'fixes', 'status_id' => '3'}] do
assert_difference 'Journal.count' do
- c = Changeset.generate!(:repository => Project.find(1).repository,:comments => "Fixes ##{issue.id}")
+ c = Changeset.
+ generate!(
+ :repository => Project.find(1).repository,
+ :comments => "Fixes ##{issue.id}"
+ )
assert_include c.id, issue.reload.changeset_ids
journal = Journal.order('id DESC').first
assert_equal 1, journal.details.count
@@ -200,10 +204,13 @@ class ChangesetTest < ActiveSupport::TestCase
def test_update_keywords_without_change_should_not_create_journal
issue = Issue.generate!(:project_id => 1, :status_id => 3)
-
with_settings :commit_update_keywords => [{'keywords' => 'fixes', 'status_id' => '3'}] do
assert_no_difference 'Journal.count' do
- c = Changeset.generate!(:repository => Project.find(1).repository,:comments => "Fixes ##{issue.id}")
+ c = Changeset.
+ generate!(
+ :repository => Project.find(1).repository,
+ :comments => "Fixes ##{issue.id}"
+ )
assert_include c.id, issue.reload.changeset_ids
end
end