]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/LeadingCommentSpace in test/unit/project_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 11:13:14 +0000 (11:13 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 14 Oct 2019 11:13:14 +0000 (11:13 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18648 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/project_test.rb

index 8ae3920c9c77b72ab356c99032009c16ef93f985..0a24819d299d5d6833655e3234f679b98ce33f0c 100644 (file)
@@ -299,7 +299,6 @@ Layout/LeadingCommentSpace:
   Exclude:
     - 'lib/diff.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-    - 'test/unit/project_test.rb'
     - 'test/unit/query_test.rb'
     - 'test/unit/user_test.rb'
 
index 1a8e3e67b624c315172be34cb716de5a3bb421a6..8d447f474c18b76ff87a07af5ce1c4d2a061de62 100644 (file)
@@ -711,28 +711,28 @@ class ProjectTest < ActiveSupport::TestCase
     @project.enabled_module_names = []
     @project.reload
     assert_equal [], @project.enabled_module_names
-    #with string
+    # with string
     @project.enable_module!("issue_tracking")
     assert_equal ["issue_tracking"], @project.enabled_module_names
-    #with symbol
+    # with symbol
     @project.enable_module!(:gantt)
     assert_equal ["issue_tracking", "gantt"], @project.enabled_module_names
-    #don't add a module twice
+    # don't add a module twice
     @project.enable_module!("issue_tracking")
     assert_equal ["issue_tracking", "gantt"], @project.enabled_module_names
   end
 
   test "enabled_modules should disable a module" do
     @project = Project.find(1)
-    #with string
+    # with string
     assert @project.enabled_module_names.include?("issue_tracking")
     @project.disable_module!("issue_tracking")
     assert ! @project.reload.enabled_module_names.include?("issue_tracking")
-    #with symbol
+    # with symbol
     assert @project.enabled_module_names.include?("gantt")
     @project.disable_module!(:gantt)
     assert ! @project.reload.enabled_module_names.include?("gantt")
-    #with EnabledModule object
+    # with EnabledModule object
     first_module = @project.enabled_modules.first
     @project.disable_module!(first_module)
     assert ! @project.reload.enabled_module_names.include?(first_module.name)