@@ -46,6 +46,11 class NewsControllerTest < ActionController::TestCase | |||
|
46 | 46 | assert_not_nil assigns(:newss) |
|
47 | 47 | end |
|
48 | 48 | |
|
49 | def test_index_with_invalid_project_should_respond_with_404 | |
|
50 | get :index, :project_id => 999 | |
|
51 | assert_response 404 | |
|
52 | end | |
|
53 | ||
|
49 | 54 | def test_show |
|
50 | 55 | get :show, :id => 1 |
|
51 | 56 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now