]> source.dussan.org Git - redmine.git/commitdiff
More functional tests for NewsController.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Mar 2012 13:47:28 +0000 (13:47 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 10 Mar 2012 13:47:28 +0000 (13:47 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9173 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/news_controller_test.rb

index 78e545d0201db6a10102ad07174139a873497891..a8ca41a920a29ccd2287fad63c5dab3cd7cb8814 100644 (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