@@ -374,6 +374,18 class RepositoriesGitControllerTest < ActionController::TestCase | |||
|
374 | 374 | end |
|
375 | 375 | end |
|
376 | 376 | |
|
377 | def test_destroy_valid_repository | |
|
378 | @request.session[:user_id] = 1 # admin | |
|
379 | @repository.fetch_changesets | |
|
380 | @repository.reload | |
|
381 | assert @repository.changesets.count > 0 | |
|
382 | ||
|
383 | get :destroy, :id => PRJ_ID | |
|
384 | assert_response 302 | |
|
385 | @project.reload | |
|
386 | assert_nil @project.repository | |
|
387 | end | |
|
388 | ||
|
377 | 389 | private |
|
378 | 390 | |
|
379 | 391 | def puts_ruby19_non_utf8_pass |
General Comments 0
You need to be logged in to leave comments.
Login now