##// END OF EJS Templates
scm: mercurial: add functional test of destroying valid repository (#8777, #6713, #4725)....
Toshi MARUYAMA -
r6123:bc5587002a76
parent child
Show More
@@ -433,6 +433,18 class RepositoriesMercurialControllerTest < ActionController::TestCase
433 assert_error_tag :content => /was not found/
433 assert_error_tag :content => /was not found/
434 end
434 end
435 end
435 end
436
437 def test_destroy_valid_repository
438 @request.session[:user_id] = 1 # admin
439 @repository.fetch_changesets
440 @repository.reload
441 assert @repository.changesets.count > 0
442
443 get :destroy, :id => PRJ_ID
444 assert_response 302
445 @project.reload
446 assert_nil @project.repository
447 end
436 else
448 else
437 puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!"
449 puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!"
438 def test_fake; assert true end
450 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now