diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-24 11:23:17 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-12-24 11:23:17 +0000 |
commit | 733987fbb6e4652c40d27fdca111f97754cc5920 (patch) | |
tree | 8f641f2c8d69fc7c3f5490c3b63cee6d79809b1b /test/functional/issues_controller_test.rb | |
parent | 7389b4bed0cabf3e248707474a63c459be91ab9d (diff) | |
download | redmine-733987fbb6e4652c40d27fdca111f97754cc5920.tar.gz redmine-733987fbb6e4652c40d27fdca111f97754cc5920.zip |
Merged r2168 to r2171 from trunk.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.8-stable@2172 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r-- | test/functional/issues_controller_test.rb | 10 |
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 |