From db44c22d04cc98bdd1800e2c83c8373fd3b8efc2 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 10 Jul 2011 23:13:49 +0000 Subject: [PATCH] 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 --- .../repositories_filesystem_controller_test.rb | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.39.5