]> source.dussan.org Git - redmine.git/commitdiff
code cleanup: rubocop: fix Layout/EmptyLines in test/unit/query_test.rb
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 19 Oct 2019 07:27:35 +0000 (07:27 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 19 Oct 2019 07:27:35 +0000 (07:27 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@18741 e93f8b46-1217-0410-a6f0-8f06a7374b81

.rubocop_todo.yml
test/unit/query_test.rb

index 9ba1281d828451d15fb8283f2ea3b8480f9828d8..27e2d405eacc9c60a43aede218146065bd526180 100644 (file)
@@ -109,7 +109,6 @@ Layout/EmptyLines:
     - 'lib/redmine/sudo_mode.rb'
     - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
     - 'test/helpers/application_helper_test.rb'
-    - 'test/unit/query_test.rb'
 
 # Cop supports --auto-correct.
 # Configuration parameters: EnforcedStyle.
index 3a2b25e4514f2b3eb62e2a88b188dd36fd3d11b3..7888a499343fd2f6b56bb796f62c577c3d2933d4 100644 (file)
@@ -1267,7 +1267,6 @@ class QueryTest < ActiveSupport::TestCase
     Issue.delete_all
     parent = Issue.generate_with_descendants!
 
-
     query = IssueQuery.new(:name => '_')
     query.filters = {"parent_id" => {:operator => '=', :values => [parent.id.to_s]}}
     assert_equal parent.children.map(&:id).sort, find_issues_with_query(query).map(&:id).sort
@@ -1297,7 +1296,6 @@ class QueryTest < ActiveSupport::TestCase
     child, leaf = parent.children.sort_by(&:id)
     grandchild = child.children.first
 
-
     query = IssueQuery.new(:name => '_')
     query.filters = {"child_id" => {:operator => '=', :values => [grandchild.id.to_s]}}
     assert_equal [child.id], find_issues_with_query(query).map(&:id).sort
@@ -1668,7 +1666,6 @@ class QueryTest < ActiveSupport::TestCase
 
     [parent, child, private_child, other].each(&:save!)
 
-
     q = IssueQuery.new(
       :name => '_',
       :filters => { 'issue_id' => {:operator => '=', :values => ['1,7']} },