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:
parent
125f5e1710
commit
33cb9c87a9
@ -46,6 +46,11 @@ class NewsControllerTest < ActionController::TestCase
|
|||||||
assert_not_nil assigns(:newss)
|
assert_not_nil assigns(:newss)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_index_with_invalid_project_should_respond_with_404
|
||||||
|
get :index, :project_id => 999
|
||||||
|
assert_response 404
|
||||||
|
end
|
||||||
|
|
||||||
def test_show
|
def test_show
|
||||||
get :show, :id => 1
|
get :show, :id => 1
|
||||||
assert_response :success
|
assert_response :success
|
||||||
|
Loading…
x
Reference in New Issue
Block a user