summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 8bd1af565..f0f1ec6ec 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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