]> source.dussan.org Git - redmine.git/commitdiff
remove spaces inside {} of RepositoryGitTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 21 Jul 2020 13:40:19 +0000 (13:40 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Tue, 21 Jul 2020 13:40:19 +0000 (13:40 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@19925 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_git_test.rb

index ea4de0f1124863a0eda2e9b4f4176d36b4192f59..1a2c51ea8bb60efce2093f1a8af64f87a1ce3a02 100644 (file)
@@ -156,7 +156,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
       assert_equal NUM_REV, @repository.changesets.count
       extra_info_heads = @repository.extra_info["heads"].dup
       assert_equal NUM_HEAD, extra_info_heads.size
-      extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" }
+      extra_info_heads.delete_if {|x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c"}
       assert_equal NUM_HEAD - 2, extra_info_heads.size
       del_revs =
         [
@@ -168,7 +168,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
           "7e61ac704deecde634b51e59daa8110435dcb3da",
         ]
       @repository.changesets.each do |rev|
-        rev.destroy if del_revs.detect {|r| r == rev.scmid.to_s }
+        rev.destroy if del_revs.detect {|r| r == rev.scmid.to_s}
       end
       @project.reload
       cs1 = @repository.changesets
@@ -194,7 +194,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
       assert_equal NUM_REV, @repository.changesets.count
       extra_info_heads = @repository.extra_info["heads"].dup
       assert_equal NUM_HEAD, extra_info_heads.size
-      extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" }
+      extra_info_heads.delete_if {|x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c"}
       assert_equal NUM_HEAD - 2, extra_info_heads.size
       del_revs =
         [
@@ -206,7 +206,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
           "7e61ac704deecde634b51e59daa8110435dcb3da",
         ]
       @repository.changesets.each do |rev|
-        rev.destroy if del_revs.detect {|r| r == rev.scmid.to_s }
+        rev.destroy if del_revs.detect {|r| r == rev.scmid.to_s}
       end
       @project.reload
       assert_equal NUM_REV - 6, @repository.changesets.count
@@ -307,7 +307,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
       assert_equal 0, @repository.extra_info["db_consistent"]["ordering"]
 
       extra_info_heads = @repository.extra_info["heads"].dup
-      extra_info_heads.delete_if { |x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c" }
+      extra_info_heads.delete_if {|x| x == "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c"}
       del_revs =
         [
           "83ca5fd546063a3c7dc2e568ba3355661a9e2b2c",
@@ -318,7 +318,7 @@ class RepositoryGitTest < ActiveSupport::TestCase
           "7e61ac704deecde634b51e59daa8110435dcb3da",
         ]
       @repository.changesets.each do |rev|
-        rev.destroy if del_revs.detect {|r| r == rev.scmid.to_s }
+        rev.destroy if del_revs.detect {|r| r == rev.scmid.to_s}
       end
       @project.reload
       cs1 = @repository.changesets