diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 23:13:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-07-10 23:13:49 +0000 |
commit | db44c22d04cc98bdd1800e2c83c8373fd3b8efc2 (patch) | |
tree | 335f4bfe91b43742d3d3236f014aff24fb5e16e4 | |
parent | 7a8a98bd93d483797eb46d5f5cf78904715dc95f (diff) | |
download | redmine-db44c22d04cc98bdd1800e2c83c8373fd3b8efc2.tar.gz redmine-db44c22d04cc98bdd1800e2c83c8373fd3b8efc2.zip |
scm: filesystem: add functional test of destroying valid repository (#6713, #4725).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6238 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/repositories_filesystem_controller_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb index 8b3f5f5b8..a186e34e7 100644 --- a/test/functional/repositories_filesystem_controller_test.rb +++ b/test/functional/repositories_filesystem_controller_test.rb @@ -116,6 +116,15 @@ class RepositoriesFilesystemControllerTest < ActionController::TestCase assert_equal 'text/plain', @response.content_type end end + + def test_destroy_valid_repository + @request.session[:user_id] = 1 # admin + + get :destroy, :id => PRJ_ID + assert_response 302 + @project.reload + assert_nil @project.repository + end else puts "Filesystem test repository NOT FOUND. Skipping functional tests !!!" def test_fake; assert true end |