diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-10 13:47:28 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-03-10 13:47:28 +0000 |
commit | 33cb9c87a9fabe56cf15d125ec1221807a08cf60 (patch) | |
tree | c726a0390f5c6d5567ae1c0243c4c6540a58ffd0 /test/functional/news_controller_test.rb | |
parent | 125f5e1710db0e97a57a3ad3e2b9a3401489ee00 (diff) | |
download | redmine-33cb9c87a9fabe56cf15d125ec1221807a08cf60.tar.gz redmine-33cb9c87a9fabe56cf15d125ec1221807a08cf60.zip |
More functional tests for NewsController.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9173 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/news_controller_test.rb')
-rw-r--r-- | test/functional/news_controller_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb index 78e545d02..a8ca41a92 100644 --- a/test/functional/news_controller_test.rb +++ b/test/functional/news_controller_test.rb @@ -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 |