More functional tests for NewsController.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9173 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-03-10 13:47:28 +00:00
parent 125f5e1710
commit 33cb9c87a9
1 changed files with 5 additions and 0 deletions

View File

@ -46,6 +46,11 @@ class NewsControllerTest < ActionController::TestCase
assert_not_nil assigns(:newss)
end
def test_index_with_invalid_project_should_respond_with_404
get :index, :project_id => 999
assert_response 404
end
def test_show
get :show, :id => 1
assert_response :success