From: Toshi MARUYAMA Date: Sun, 10 Jul 2011 23:13:49 +0000 (+0000) Subject: scm: filesystem: add functional test of destroying valid repository (#6713, #4725). X-Git-Tag: 1.3.0~1685 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=db44c22d04cc98bdd1800e2c83c8373fd3b8efc2;p=redmine.git 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 --- 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