]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of RepositoryFilesystemTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 2 Oct 2020 12:58:58 +0000 (12:58 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Fri, 2 Oct 2020 12:58:58 +0000 (12:58 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20103 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_filesystem_test.rb

index 268bda6663c02d229d7a278381d6e24801dea824..4f259b5ec70a2673e9494e564d568aaaf9547643 100644 (file)
@@ -30,19 +30,17 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
     User.current = nil
     @project = Project.find(3)
     Setting.enabled_scm << 'Filesystem' unless Setting.enabled_scm.include?('Filesystem')
-    @repository = Repository::Filesystem.create(
-                               :project => @project,
-                               :url     => REPOSITORY_PATH
-                                 )
+    @repository =
+      Repository::Filesystem.
+        create(:project => @project, :url => REPOSITORY_PATH)
     assert @repository
   end
 
   def test_blank_root_directory_error_message
     set_language_if_valid 'en'
-    repo = Repository::Filesystem.new(
-                          :project      => @project,
-                          :identifier   => 'test'
-                        )
+    repo =
+      Repository::Filesystem.
+        new(:project => @project, :identifier => 'test')
     assert !repo.save
     assert_include "Root directory cannot be blank",
                    repo.errors.full_messages
@@ -50,12 +48,13 @@ class RepositoryFilesystemTest < ActiveSupport::TestCase
 
   def test_blank_root_directory_error_message_fr
     set_language_if_valid 'fr'
-    repo = Repository::Filesystem.new(
-                          :project      => @project,
-                          :url          => "",
-                          :identifier   => 'test',
-                          :path_encoding => ''
-                        )
+    repo =
+      Repository::Filesystem.new(
+        :project      => @project,
+        :url          => "",
+        :identifier   => 'test',
+        :path_encoding => ''
+      )
     assert !repo.save
     assert_include 'Répertoire racine doit être renseigné(e)', repo.errors.full_messages
   end