@@ -317,6 +317,12 class IssuesControllerTest < ActionController::TestCase | |||
|
317 | 317 | assert_template 'index' |
|
318 | 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 | 326 | def test_show_by_anonymous |
|
321 | 327 | get :show, :id => 1 |
|
322 | 328 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now