@@ -433,6 +433,18 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
433 | 433 | assert_error_tag :content => /was not found/ |
|
434 | 434 | end |
|
435 | 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 | 448 | else |
|
437 | 449 | puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!" |
|
438 | 450 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now