summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 11:13:14 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-14 11:13:14 +0000
commit0cf19f967ae2bc65abddbce00a3be1e73774d0da (patch)
tree6de8cb60629251e12c248301de517d4b4fa8f229
parent9caac1609e71188115b816a8764ef0403b9ae963 (diff)
downloadredmine-0cf19f967ae2bc65abddbce00a3be1e73774d0da.tar.gz
redmine-0cf19f967ae2bc65abddbce00a3be1e73774d0da.zip
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
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/unit/project_test.rb12
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)