]> source.dussan.org Git - redmine.git/commitdiff
cleanup: rubocop: fix Layout/ClosingParenthesisIndentation in test/functional/reposit...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:26:44 +0000 (05:26 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sun, 24 Nov 2019 05:26:44 +0000 (05:26 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19230 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_git_controller_test.rb

index a8c89eb39a6acad5b067fa6b721be91714d525ab..e3e3383f254a75fca60d75f08af959d381035c2c 100644 (file)
@@ -36,11 +36,13 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
 
     User.current = nil
     @project    = Project.find(PRJ_ID)
-    @repository = Repository::Git.create(
-                      :project       => @project,
-                      :url           => REPOSITORY_PATH,
-                      :path_encoding => 'ISO-8859-1'
-                      )
+    @repository =
+      Repository::Git.
+        create(
+          :project       => @project,
+          :url           => REPOSITORY_PATH,
+          :path_encoding => 'ISO-8859-1'
+        )
     assert @repository
   end
 
@@ -391,12 +393,14 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
     end
 
     def test_diff_path_in_subrepo
-      repo = Repository::Git.create(
-                      :project       => @project,
-                      :url           => REPOSITORY_PATH,
-                      :identifier => 'test-diff-path',
-                      :path_encoding => 'ISO-8859-1'
-                      )
+      repo =
+        Repository::Git.
+          create(
+            :project       => @project,
+            :url           => REPOSITORY_PATH,
+            :identifier => 'test-diff-path',
+            :path_encoding => 'ISO-8859-1'
+          )
       assert repo
       assert_equal false, repo.is_default
       assert_equal 'test-diff-path', repo.identifier
@@ -653,11 +657,13 @@ class RepositoriesGitControllerTest < Redmine::RepositoryControllerTest
     def test_destroy_invalid_repository
       @request.session[:user_id] = 1 # admin
       @project.repository.destroy
-      @repository = Repository::Git.create!(
-                      :project       => @project,
-                      :url           => "/invalid",
-                      :path_encoding => 'ISO-8859-1'
-                      )
+      @repository =
+        Repository::Git.
+          create!(
+            :project       => @project,
+            :url           => "/invalid",
+            :path_encoding => 'ISO-8859-1'
+          )
       @repository.fetch_changesets
       @repository.reload
       assert_equal 0, @repository.changesets.count