summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 23:41:33 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-09-01 23:41:33 +0000
commit4645cf0ac8f290950c57c5aebd6b183118aaf41e (patch)
tree1b3807ad6bbf882625b4028be039502acae41047
parent3504fd038c1f097a86c0461fcca08b85785fded3 (diff)
downloadredmine-4645cf0ac8f290950c57c5aebd6b183118aaf41e.tar.gz
redmine-4645cf0ac8f290950c57c5aebd6b183118aaf41e.zip
add test to respond nothing in case of content type is html with invalid query params (#8883, #6317).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7025 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--test/functional/issues_controller_test.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 5a2e965a7..64aa2bb28 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -311,6 +311,12 @@ class IssuesControllerTest < ActionController::TestCase
:ancestor => {:tag => 'table', :attributes => {:class => /issues/}}
end
+ def test_index_send_html_if_query_is_invalid
+ get :index, :f => ['start_date'], :op => {:start_date => '='}
+ assert_equal 'text/html', @response.content_type
+ assert_template 'index'
+ end
+
def test_show_by_anonymous
get :show, :id => 1
assert_response :success