mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-20 15:31:12 +00:00
Adds a test for default issue columns order (#18310).
git-svn-id: http://svn.redmine.org/redmine/trunk@13583 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
55c49a6d46
commit
140ca9532c
@ -728,6 +728,16 @@ class IssuesControllerTest < ActionController::TestCase
|
|||||||
assert_equal columns.map(&:to_sym), query.columns.map(&:name)
|
assert_equal columns.map(&:to_sym), query.columns.map(&:name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_index_with_default_columns_should_respect_default_columns_order
|
||||||
|
columns = ['assigned_to', 'subject', 'status', 'tracker']
|
||||||
|
with_settings :issue_list_default_columns => columns do
|
||||||
|
get :index, :project_id => 1, :set_filter => 1
|
||||||
|
|
||||||
|
query = assigns(:query)
|
||||||
|
assert_equal (['id'] + columns).map(&:to_sym), query.columns.map(&:name)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
def test_index_with_custom_field_column
|
def test_index_with_custom_field_column
|
||||||
columns = %w(tracker subject cf_2)
|
columns = %w(tracker subject cf_2)
|
||||||
get :index, :set_filter => 1, :c => columns
|
get :index, :set_filter => 1, :c => columns
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user