summaryrefslogtreecommitdiffstats
path: root/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-21 13:51:42 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-11-21 13:51:42 +0000
commitc7bfcd77dcfd71c1604976d586158dfa58a6f788 (patch)
treea2594eac5a0b98d610462a75a2c8712d56060497 /test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
parent6aa4038d9dda4a35134e1f28394830246faca1bc (diff)
downloadredmine-c7bfcd77dcfd71c1604976d586158dfa58a6f788.tar.gz
redmine-c7bfcd77dcfd71c1604976d586158dfa58a6f788.zip
shorten long line of test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20456 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb')
-rw-r--r--test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
index f0ceca300..fab74142f 100644
--- a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
@@ -30,9 +30,13 @@ class CvsAdapterTest < ActiveSupport::TestCase
end
def test_scm_version
- to_test = { "\nConcurrent Versions System (CVS) 1.12.13 (client/server)\n" => [1,12,13],
- "\r\n1.12.12\r\n1.12.11" => [1,12,12],
- "1.12.11\r\n1.12.10\r\n" => [1,12,11]}
+ to_test =
+ {
+ "\nConcurrent Versions System (CVS) 1.12.13 (client/server)\n" =>
+ [1, 12, 13],
+ "\r\n1.12.12\r\n1.12.11" => [1, 12, 12],
+ "1.12.11\r\n1.12.10\r\n" => [1, 12, 11]
+ }
to_test.each do |s, v|
test_scm_version_for(s, v)
end