Commit 4b276a0a authored by tmaruyama's avatar tmaruyama
Browse files

add test to respond nothing in case of content type is html with invalid query...

add test to respond nothing in case of content type is html with invalid query params (#8883, #6317).

git-svn-id: https://svn.redmine.org/redmine/trunk@7025 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 8ebd5cf2
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment