@@ -425,6 +425,18 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
425 | 425 | assert_error_tag :content => /was not found/ |
|
426 | 426 | end |
|
427 | 427 | end |
|
428 | ||
|
429 | def test_destroy_valid_repository | |
|
430 | @request.session[:user_id] = 1 # admin | |
|
431 | @repository.fetch_changesets | |
|
432 | @repository.reload | |
|
433 | assert @repository.changesets.count > 0 | |
|
434 | ||
|
435 | get :destroy, :id => PRJ_ID | |
|
436 | assert_response 302 | |
|
437 | @project.reload | |
|
438 | assert_nil @project.repository | |
|
439 | end | |
|
428 | 440 | else |
|
429 | 441 | puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!" |
|
430 | 442 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now