summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-19 07:27:35 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-19 07:27:35 +0000
commite2cb4be8920180a914511e3ff7e69a1ec2a57bb7 (patch)
tree3596a29a7bdcccf276f4e85d19550432654e78e3
parent35a4d23ced42fa3e273e350897be8e9143f54a40 (diff)
downloadredmine-e2cb4be8920180a914511e3ff7e69a1ec2a57bb7.tar.gz
redmine-e2cb4be8920180a914511e3ff7e69a1ec2a57bb7.zip
code cleanup: rubocop: fix Layout/EmptyLines in test/unit/query_test.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18741 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--test/unit/query_test.rb3
2 files changed, 0 insertions, 4 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 9ba1281d8..27e2d405e 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -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.
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 3a2b25e45..7888a4993 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -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']} },