]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/SpaceAfterColon in test/integration/wiki_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 7 Oct 2019 07:21:14 +0000 (07:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 7 Oct 2019 07:21:14 +0000 (07:21 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18611 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/integration/wiki_test.rb

index 580340ca621d507ceb0b6113b62e5f724ec30a74..8477c8fe959bfc9956f4574972e7477dbe107592 100644 (file)
@@ -360,11 +360,6 @@ Layout/RescueEnsureAlignment:
   Exclude:
     - 'db/migrate/085_add_role_tracker_old_status_index_to_workflows.rb'
 
-# Cop supports --auto-correct.
-Layout/SpaceAfterColon:
-  Exclude:
-    - 'test/integration/wiki_test.rb'
-
 # Cop supports --auto-correct.
 Layout/SpaceAfterComma:
   Enabled: false
index 0a04cc2ac8716afdbaa60ea27cc32c9834356bd1..5774e413dae56dd2d1b924e4b4d807bac50ef0e2 100644 (file)
@@ -44,7 +44,7 @@ class WikiIntegrationTest < Redmine::IntegrationTest
     # this update should not end up with a loss of content
     put '/projects/ecookbook/wiki/Wiki', params: {
       content: {
-        text: "# Wiki\r\n\r\ncontent", comments:""
+        text: "# Wiki\r\n\r\ncontent", comments: ""
       },
       wiki_page: { parent_id: "" }
     }
@@ -61,7 +61,7 @@ class WikiIntegrationTest < Redmine::IntegrationTest
     # this update should not end up with a loss of content
     put '/projects/ecookbook/wiki/Wiki', params: {
       content: {
-        version: content.version, text: "# Wiki\r\n\r\nnew content", comments:""
+        version: content.version, text: "# Wiki\r\n\r\nnew content", comments: ""
       },
       wiki_page: { parent_id: "" }
     }
@@ -70,5 +70,4 @@ class WikiIntegrationTest < Redmine::IntegrationTest
     follow_redirect!
     assert_select 'div', /new content/
   end
-
 end