- '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.
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
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
[parent, child, private_child, other].each(&:save!)
-
q = IssueQuery.new(
:name => '_',
:filters => { 'issue_id' => {:operator => '=', :values => ['1,7']} },