Adds functional tests.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8948 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-02-23 14:39:55 +00:00
parent e6a64aa00b
commit c49ef8e543
3 changed files with 43 additions and 0 deletions

View File

@@ -219,6 +219,11 @@ class AttachmentsControllerTest < ActionController::TestCase
assert_response 403
end
def test_show_invalid_should_respond_with_404
get :show, :id => 999
assert_response 404
end
def test_download_text_file
get :download, :id => 4
assert_response :success