From 54eb01f04532993d9c4a2fa47e6705d29808b204 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 9 Nov 2019 14:10:02 +0000 Subject: [PATCH] cleanup: rubocop: fix Layout/AlignArguments in ApplicationHelperTest#test_multiple_repositories_redmine_links git-svn-id: http://svn.redmine.org/redmine/trunk@19013 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/application_helper_test.rb | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index f35fca027..2aa70e804 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -595,13 +595,22 @@ class ApplicationHelperTest < Redmine::HelperTest hg = Repository::Mercurial.create!(:project_id => 1, :identifier => 'hg1', :url => '/foo/hg') Changeset.create!(:repository => hg, :committed_on => Time.now, :revision => '123', :scmid => 'abcd') - changeset_link = link_to('r2', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :repository_id => 10, :rev => 2}, - :class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3') - svn_changeset_link = link_to('svn_repo-1|r123', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :repository_id => 'svn_repo-1', :rev => 123}, - :class => 'changeset', :title => '') - hg_changeset_link = link_to('hg1|abcd', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :repository_id => 'hg1', :rev => 'abcd'}, - :class => 'changeset', :title => '') - + changeset_link = link_to( + 'r2', + {:controller => 'repositories', :action => 'revision', + :id => 'ecookbook', :repository_id => 10, :rev => 2}, + :class => 'changeset', + :title => 'This commit fixes #1, #2 and references #1 & #3') + svn_changeset_link = link_to( + 'svn_repo-1|r123', + {:controller => 'repositories', :action => 'revision', + :id => 'ecookbook', :repository_id => 'svn_repo-1', :rev => 123}, + :class => 'changeset', :title => '') + hg_changeset_link = link_to( + 'hg1|abcd', + {:controller => 'repositories', :action => 'revision', + :id => 'ecookbook', :repository_id => 'hg1', :rev => 'abcd'}, + :class => 'changeset', :title => '') source_link = link_to('source:some/file', {:controller => 'repositories', :action => 'entry', :id => 'ecookbook', :repository_id => 10, -- 2.39.5