summaryrefslogtreecommitdiffstats
path: root/test
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 /test
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
Diffstat (limited to 'test')
-rw-r--r--test/unit/query_test.rb3
1 files changed, 0 insertions, 3 deletions
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']} },