1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

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
This commit is contained in:
Toshi MARUYAMA 2019-11-23 15:12:01 +00:00
parent 1c319946d1
commit c19550ddc1

View File

@ -190,7 +190,11 @@ class ChangesetTest < ActiveSupport::TestCase
with_settings :commit_update_keywords => [{'keywords' => 'fixes', 'status_id' => '3'}] do with_settings :commit_update_keywords => [{'keywords' => 'fixes', 'status_id' => '3'}] do
assert_difference 'Journal.count' 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 assert_include c.id, issue.reload.changeset_ids
journal = Journal.order('id DESC').first journal = Journal.order('id DESC').first
assert_equal 1, journal.details.count assert_equal 1, journal.details.count
@ -200,10 +204,13 @@ class ChangesetTest < ActiveSupport::TestCase
def test_update_keywords_without_change_should_not_create_journal def test_update_keywords_without_change_should_not_create_journal
issue = Issue.generate!(:project_id => 1, :status_id => 3) issue = Issue.generate!(:project_id => 1, :status_id => 3)
with_settings :commit_update_keywords => [{'keywords' => 'fixes', 'status_id' => '3'}] do with_settings :commit_update_keywords => [{'keywords' => 'fixes', 'status_id' => '3'}] do
assert_no_difference 'Journal.count' 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 assert_include c.id, issue.reload.changeset_ids
end end
end end