From: Toshi MARUYAMA Date: Fri, 2 Oct 2020 12:58:58 +0000 (+0000) Subject: fix source indent of RepositoryFilesystemTest X-Git-Tag: 4.2.0~714 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9a99e8b6eb9efec8198eaf9649072bfe84cca12f;p=redmine.git fix source indent of RepositoryFilesystemTest git-svn-id: http://svn.redmine.org/redmine/trunk@20103 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb index 268bda666..4f259b5ec 100644 --- a/test/unit/repository_filesystem_test.rb +++ b/test/unit/repository_filesystem_test.rb @@ -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