mirror of
https://github.com/redmine/redmine.git
synced 2025-11-10 07:16:03 +01:00
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
This commit is contained in:
@@ -109,7 +109,6 @@ Layout/EmptyLines:
|
|||||||
- 'lib/redmine/sudo_mode.rb'
|
- 'lib/redmine/sudo_mode.rb'
|
||||||
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
|
||||||
- 'test/helpers/application_helper_test.rb'
|
- 'test/helpers/application_helper_test.rb'
|
||||||
- 'test/unit/query_test.rb'
|
|
||||||
|
|
||||||
# Cop supports --auto-correct.
|
# Cop supports --auto-correct.
|
||||||
# Configuration parameters: EnforcedStyle.
|
# Configuration parameters: EnforcedStyle.
|
||||||
|
|||||||
@@ -1267,7 +1267,6 @@ class QueryTest < ActiveSupport::TestCase
|
|||||||
Issue.delete_all
|
Issue.delete_all
|
||||||
parent = Issue.generate_with_descendants!
|
parent = Issue.generate_with_descendants!
|
||||||
|
|
||||||
|
|
||||||
query = IssueQuery.new(:name => '_')
|
query = IssueQuery.new(:name => '_')
|
||||||
query.filters = {"parent_id" => {:operator => '=', :values => [parent.id.to_s]}}
|
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
|
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)
|
child, leaf = parent.children.sort_by(&:id)
|
||||||
grandchild = child.children.first
|
grandchild = child.children.first
|
||||||
|
|
||||||
|
|
||||||
query = IssueQuery.new(:name => '_')
|
query = IssueQuery.new(:name => '_')
|
||||||
query.filters = {"child_id" => {:operator => '=', :values => [grandchild.id.to_s]}}
|
query.filters = {"child_id" => {:operator => '=', :values => [grandchild.id.to_s]}}
|
||||||
assert_equal [child.id], find_issues_with_query(query).map(&:id).sort
|
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!)
|
[parent, child, private_child, other].each(&:save!)
|
||||||
|
|
||||||
|
|
||||||
q = IssueQuery.new(
|
q = IssueQuery.new(
|
||||||
:name => '_',
|
:name => '_',
|
||||||
:filters => { 'issue_id' => {:operator => '=', :values => ['1,7']} },
|
:filters => { 'issue_id' => {:operator => '=', :values => ['1,7']} },
|
||||||
|
|||||||
Reference in New Issue
Block a user