mirror of
https://github.com/redmine/redmine.git
synced 2024-09-09 22:25:56 +02:00
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)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user