##// END OF EJS Templates
add test to respond nothing in case of content type is not html with invalid query params (#8883, #6317)....
Toshi MARUYAMA -
r6906:9281df1bff81
parent child
Show More
@@ -317,6 +317,12 class IssuesControllerTest < ActionController::TestCase
317 assert_template 'index'
317 assert_template 'index'
318 end
318 end
319
319
320 def test_index_send_nothing_if_query_is_invalid
321 get :index, :f => ['start_date'], :op => {:start_date => '='}, :format => 'csv'
322 assert_equal 'text/csv', @response.content_type
323 assert @response.body.blank?
324 end
325
320 def test_show_by_anonymous
326 def test_show_by_anonymous
321 get :show, :id => 1
327 get :show, :id => 1
322 assert_response :success
328 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now