Optimize associations loading on the issue list.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3072 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -202,6 +202,15 @@ class QueryTest < ActiveSupport::TestCase
|
||||
assert q.groupable_columns.detect {|c| c.is_a? QueryCustomFieldColumn}
|
||||
end
|
||||
|
||||
def test_include_options
|
||||
q = Query.new
|
||||
q.column_names = %w(subject tracker)
|
||||
assert_equal [:tracker], q.include_options
|
||||
|
||||
q.group_by = 'category'
|
||||
assert_equal [:tracker, :category], q.include_options
|
||||
end
|
||||
|
||||
def test_default_sort
|
||||
q = Query.new
|
||||
assert_equal [], q.sort_criteria
|
||||
|
||||
Reference in New Issue
Block a user