diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-02 13:31:31 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2020-12-02 13:31:31 +0000 |
commit | 1a2fcf1de499894ffecadc8c01ca74d034e66ddd (patch) | |
tree | 1f9823cd190c153ffa137afe9b2adbb4705934fe /test/unit/lib | |
parent | a2c7ec04ac8fe1f2de5c372480a80b1d0cbbd0cc (diff) | |
download | redmine-1a2fcf1de499894ffecadc8c01ca74d034e66ddd.tar.gz redmine-1a2fcf1de499894ffecadc8c01ca74d034e66ddd.zip |
fix source indent of GitAdapterTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20540 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib')
-rw-r--r-- | test/unit/lib/redmine/scm/adapters/git_adapter_test.rb | 58 |
1 files changed, 32 insertions, 26 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 a4e092919..6d849990c 100644 --- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb +++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb @@ -240,13 +240,13 @@ class GitAdapterTest < ActiveSupport::TestCase else revs1 = [] @adapter.revisions( - '', - "latin-1-branch-#{@char_1}-01", - "latin-1-branch-#{@char_1}-02", - {:reverse => true}) do |rev| + '', + "latin-1-branch-#{@char_1}-01", + "latin-1-branch-#{@char_1}-02", + {:reverse => true} + ) do |rev| revs1 << rev end - assert_equal 2, revs1.length assert_equal '64f1f3e89ad1cb57976ff0ad99a107012ba3481d', revs1[0].identifier assert_equal '1ca7f5ed374f3cb31a93ae5215c2e25cc6ec5127', revs1[1].identifier @@ -258,10 +258,11 @@ class GitAdapterTest < ActiveSupport::TestCase assert_raise Redmine::Scm::Adapters::CommandFailed do revs1 = [] @adapter.revisions( - '', - '1234abcd', - "master", - {:reverse => true}) do |rev| + '', + '1234abcd', + "master", + {:reverse => true} + ) do |rev| revs1 << rev end end @@ -392,17 +393,20 @@ class GitAdapterTest < ActiveSupport::TestCase def test_getting_revisions_with_leading_and_trailing_spaces_in_filename assert_equal( - " filename with a leading space.txt ", - @adapter.revisions(" filename with a leading space.txt ", - nil, "master")[0].paths[0][:path]) + " filename with a leading space.txt ", + @adapter.revisions(" filename with a leading space.txt ", + 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) + " filename with a leading space.txt ", + @adapter.entries( + '', + '83ca5fd546063a3c7dc2e568ba3355661a9e2b2c' + )[3].name + ) end def test_annotate @@ -618,17 +622,19 @@ class GitAdapterTest < ActiveSupport::TestCase end def test_path_encoding_default_utf8 - adpt1 = Redmine::Scm::Adapters::GitAdapter.new( - REPOSITORY_PATH - ) + adpt1 = + Redmine::Scm::Adapters::GitAdapter.new( + REPOSITORY_PATH + ) assert_equal "UTF-8", adpt1.path_encoding - adpt2 = Redmine::Scm::Adapters::GitAdapter.new( - REPOSITORY_PATH, - nil, - nil, - nil, - "" - ) + adpt2 = + Redmine::Scm::Adapters::GitAdapter.new( + REPOSITORY_PATH, + nil, + nil, + nil, + "" + ) assert_equal "UTF-8", adpt2.path_encoding end |