]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of RepositorySubversionTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 24 Oct 2020 14:40:26 +0000 (14:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 24 Oct 2020 14:40:26 +0000 (14:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20186 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_subversion_test.rb

index 3fdf4ef68353205c8b28450a82721ccf0779e33c..52f6d0449553f2b249387ddffb03579146e76cdb 100644 (file)
@@ -37,11 +37,12 @@ class RepositorySubversionTest < ActiveSupport::TestCase
   def test_invalid_url
     set_language_if_valid 'en'
     ['invalid', 'http://', 'svn://', 'svn+ssh://', 'file://'].each do |url|
-      repo = Repository::Subversion.new(
-                            :project      => @project,
-                            :identifier   => 'test',
-                            :url => url
-                          )
+      repo =
+        Repository::Subversion.new(
+          :project      => @project,
+          :identifier   => 'test',
+          :url => url
+        )
       assert !repo.save
       assert_equal ["is invalid"], repo.errors[:url]
     end
@@ -49,11 +50,12 @@ class RepositorySubversionTest < ActiveSupport::TestCase
 
   def test_valid_url
     ['http://valid', 'svn://valid', 'svn+ssh://valid', 'file://valid'].each do |url|
-      repo = Repository::Subversion.new(
-                            :project      => @project,
-                            :identifier   => 'test',
-                            :url => url
-                          )
+      repo =
+        Repository::Subversion.new(
+          :project      => @project,
+          :identifier   => 'test',
+          :url => url
+        )
       assert repo.save
       assert_equal [], repo.errors[:url]
       assert repo.destroy
@@ -163,10 +165,11 @@ class RepositorySubversionTest < ActiveSupport::TestCase
 
     def test_directory_listing_with_square_brackets_in_base
       @project = Project.find(3)
-      @repository = Repository::Subversion.create(
-                          :project => @project,
-                          :url => "file:///#{self.class.repository_path('subversion')}/subversion_test/[folder_with_brackets]")
-
+      @repository =
+        Repository::Subversion.create(
+          :project => @project,
+          :url => "file:///#{self.class.repository_path('subversion')}/subversion_test/[folder_with_brackets]"
+        )
       assert_equal 0, @repository.changesets.count
       @repository.fetch_changesets
       @project.reload