Backported r2171 from trunk.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.7-stable@2177 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2008-12-24 12:20:26 +00:00
parent 5e4d66ad50
commit a98d4de1e3
13 changed files with 59 additions and 29 deletions
+10
View File
@@ -124,6 +124,16 @@ class IssuesControllerTest < Test::Unit::TestCase
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_changes
get :changes, :project_id => 1
assert_response :success