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

.rubocop_todo.yml
test/unit/query_test.rb

index a64d14241b5851d4a96fec64a75a57fc715c46dd..f24a61c6d24c80b19261c142078a681d8efc63df 100644 (file)
@@ -294,7 +294,6 @@ Layout/LeadingCommentSpace:
   Exclude:
     - 'lib/diff.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
-    - 'test/unit/query_test.rb'
     - 'test/unit/user_test.rb'
 
 # Cop supports --auto-correct.
index b1af2a06bb6406d1a83efafd6ca6a1bf2681c21f..3a2b25e4514f2b3eb62e2a88b188dd36fd3d11b3 100644 (file)
@@ -106,8 +106,8 @@ class QueryTest < ActiveSupport::TestCase
     project_filter = query.available_filters["project_id"]
     assert_not_nil project_filter
     project_ids = project_filter[:values].map{|p| p[1]}
-    assert project_ids.include?("1")  #public project
-    assert !project_ids.include?("2") #private project user cannot see
+    assert project_ids.include?("1")  # public project
+    assert !project_ids.include?("2") # private project user cannot see
   end
 
   def test_available_filters_should_not_include_fields_disabled_on_all_trackers
@@ -1159,7 +1159,7 @@ class QueryTest < ActiveSupport::TestCase
     IssueRelation.delete_all
     with_settings :cross_project_issue_relations => '1' do
       IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(1), :issue_to => Project.find(2).issues.first)
-      #IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(2), :issue_to => Project.find(1).issues.first)
+      # IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(2), :issue_to => Project.find(1).issues.first)
       IssueRelation.create!(:relation_type => "relates", :issue_from => Issue.find(1), :issue_to => Project.find(3).issues.first)
     end