mirror of
https://github.com/redmine/redmine.git
synced 2025-10-31 18:36:07 +01:00
Validates sort_key and sort_order params (#2378).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2171 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -137,6 +137,16 @@ class IssuesControllerTest < Test::Unit::TestCase
|
||||
assert_not_nil assigns(:issues)
|
||||
assert_equal 'application/pdf', @response.content_type
|
||||
end
|
||||
|
||||
def test_index_sort
|
||||
get :index, :sort_key => 'tracker'
|
||||
assert_response :success
|
||||
|
||||
sort_params = @request.session['issuesindex_sort']
|
||||
assert sort_params.is_a?(Hash)
|
||||
assert_equal 'tracker', sort_params[:key]
|
||||
assert_equal 'ASC', sort_params[:order]
|
||||
end
|
||||
|
||||
def test_gantt
|
||||
get :gantt, :project_id => 1
|
||||
|
||||
Reference in New Issue
Block a user