diff options
author | Eric Davis <edavis@littlestreamsoftware.com> | 2010-08-31 15:12:58 +0000 |
---|---|---|
committer | Eric Davis <edavis@littlestreamsoftware.com> | 2010-08-31 15:12:58 +0000 |
commit | daa8eaa9aebcc284e2904d1258cbfdd78ea23876 (patch) | |
tree | bf0238ae2199c787134a9f3bfdee2468c8832b82 /test/functional/projects_controller_test.rb | |
parent | a188abbe2813372d426afd2ab05841f0503f00c1 (diff) | |
download | redmine-daa8eaa9aebcc284e2904d1258cbfdd78ea23876.tar.gz redmine-daa8eaa9aebcc284e2904d1258cbfdd78ea23876.zip |
Refactor: move method, ProjectsController#list_files to FilesController#index.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4051 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 36d60c859..b22efd6ab 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -353,21 +353,6 @@ class ProjectsControllerTest < ActionController::TestCase assert_equal Version.find(2), a.container end - def test_list_files - get :list_files, :id => 1 - assert_response :success - assert_template 'list_files' - assert_not_nil assigns(:containers) - - # file attached to the project - assert_tag :a, :content => 'project_file.zip', - :attributes => { :href => '/attachments/download/8/project_file.zip' } - - # file attached to a project's version - assert_tag :a, :content => 'version_file.zip', - :attributes => { :href => '/attachments/download/9/version_file.zip' } - end - def test_archive @request.session[:user_id] = 1 # admin post :archive, :id => 1 |