@@ -311,6 +311,12 class IssuesControllerTest < ActionController::TestCase | |||||
311 | :ancestor => {:tag => 'table', :attributes => {:class => /issues/}} |
|
311 | :ancestor => {:tag => 'table', :attributes => {:class => /issues/}} | |
312 | end |
|
312 | end | |
313 |
|
313 | |||
|
314 | def test_index_send_html_if_query_is_invalid | |||
|
315 | get :index, :f => ['start_date'], :op => {:start_date => '='} | |||
|
316 | assert_equal 'text/html', @response.content_type | |||
|
317 | assert_template 'index' | |||
|
318 | end | |||
|
319 | ||||
314 | def test_show_by_anonymous |
|
320 | def test_show_by_anonymous | |
315 | get :show, :id => 1 |
|
321 | get :show, :id => 1 | |
316 | assert_response :success |
|
322 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now