@@ -425,6 +425,18 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
425 | assert_error_tag :content => /was not found/ |
|
425 | assert_error_tag :content => /was not found/ | |
426 | end |
|
426 | end | |
427 | end |
|
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 | else |
|
440 | else | |
429 | puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!" |
|
441 | puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!" | |
430 | def test_fake; assert true end |
|
442 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now