]> source.dussan.org Git - redmine.git/commitdiff
add test to respond nothing in case of content type is html with invalid query params...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 1 Sep 2011 23:41:33 +0000 (23:41 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 1 Sep 2011 23:41:33 +0000 (23:41 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7025 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 5a2e965a7716d3d14b5bbd07c6eb4f13897d3f4e..64aa2bb284d06dc6e70c985be20f4c74bf7b31f7 100644 (file)
@@ -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