From 0cf19f967ae2bc65abddbce00a3be1e73774d0da Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Mon, 14 Oct 2019 11:13:14 +0000 Subject: [PATCH] code cleanup: rubocop: fix Layout/LeadingCommentSpace in test/unit/project_test.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18648 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 1 - test/unit/project_test.rb | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 8ae3920c9..0a24819d2 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index 1a8e3e67b..8d447f474 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -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) -- 2.39.5