|
|
@@ -2713,4 +2713,18 @@ class QueryTest < ActiveSupport::TestCase |
|
|
|
# Non-paginated issue ids and paginated issue ids should be in the same order. |
|
|
|
assert_equal issue_ids, paginated_issue_ids |
|
|
|
end |
|
|
|
|
|
|
|
def test_display_type_should_accept_known_types |
|
|
|
query = ProjectQuery.new(:name => '_') |
|
|
|
query.display_type = 'list' |
|
|
|
|
|
|
|
assert_equal 'list', query.display_type |
|
|
|
end |
|
|
|
|
|
|
|
def test_display_type_should_not_accept_unknown_types |
|
|
|
query = ProjectQuery.new(:name => '_') |
|
|
|
query.display_type = 'invalid' |
|
|
|
|
|
|
|
assert_equal 'board', query.display_type |
|
|
|
end |
|
|
|
end |