summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 16:05:33 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-11-09 16:05:33 +0000
commit567e8e6288923c965f3ae0bb1f48b586bfc2dc63 (patch)
tree5ac93bc58c5382b1338ccc3c70bcd4b333285e86 /test
parent8bf12d80262790b2a5b10b0704add913dbcb58f9 (diff)
downloadredmine-567e8e6288923c965f3ae0bb1f48b586bfc2dc63.tar.gz
redmine-567e8e6288923c965f3ae0bb1f48b586bfc2dc63.zip
cleanup: rubocop: fix Layout/AlignArguments in test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@19031 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/lib/redmine/scm/adapters/git_adapter_test.rb19
1 files changed, 12 insertions, 7 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
index dd86a2a0e..6993064d7 100644
--- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
@@ -232,7 +232,8 @@ class GitAdapterTest < ActiveSupport::TestCase
puts JRUBY_SKIP_STR
else
revs1 = []
- @adapter.revisions('',
+ @adapter.revisions(
+ '',
"latin-1-branch-#{@char_1}-01",
"latin-1-branch-#{@char_1}-02",
{:reverse => true}) do |rev|
@@ -248,7 +249,8 @@ class GitAdapterTest < ActiveSupport::TestCase
assert_equal [], @adapter.revisions('', '1234abcd', "master")
assert_raise Redmine::Scm::Adapters::CommandFailed do
revs1 = []
- @adapter.revisions('',
+ @adapter.revisions(
+ '',
'1234abcd',
"master",
{:reverse => true}) do |rev|
@@ -381,15 +383,18 @@ class GitAdapterTest < ActiveSupport::TestCase
end
def test_getting_revisions_with_leading_and_trailing_spaces_in_filename
- assert_equal " filename with a leading space.txt ",
+ assert_equal(
+ " filename with a leading space.txt ",
@adapter.revisions(" filename with a leading space.txt ",
- nil, "master")[0].paths[0][:path]
+ nil, "master")[0].paths[0][:path])
end
def test_getting_entries_with_leading_and_trailing_spaces_in_filename
- assert_equal " filename with a leading space.txt ",
- @adapter.entries('',
- '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c')[3].name
+ assert_equal(
+ " filename with a leading space.txt ",
+ @adapter.entries(
+ '',
+ '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c')[3].name)
end
def test_annotate