Defect #33548 » 0003-Add-test-for-33548.patch
test/unit/query_test.rb | ||
---|---|---|
1707 | 1707 |
assert !q.sortable_columns['cf_1'] |
1708 | 1708 |
end |
1709 | 1709 | |
1710 |
def test_sortable_should_return_false_for_multi_custom_field |
|
1711 |
field = CustomField.find(1) |
|
1712 |
field.update_attribute :multiple, true |
|
1713 | ||
1714 |
q = IssueQuery.new |
|
1715 | ||
1716 |
field_column = q.available_columns.detect {|c| c.name==:cf_1} |
|
1717 |
assert !field_column.sortable? |
|
1718 |
end |
|
1719 | ||
1710 | 1720 |
def test_default_sort |
1711 | 1721 |
q = IssueQuery.new |
1712 | 1722 |
assert_equal [['id', 'desc']], q.sort_criteria |
- « Previous
- 1
- 2
- Next »