@@ -105,6 +105,18 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||
|
105 | 105 | :content => /def remove/ } |
|
106 | 106 | end |
|
107 | 107 | end |
|
108 | ||
|
109 | def test_destroy_valid_repository | |
|
110 | @request.session[:user_id] = 1 # admin | |
|
111 | @repository.fetch_changesets | |
|
112 | @repository.reload | |
|
113 | assert @repository.changesets.count > 0 | |
|
114 | ||
|
115 | get :destroy, :id => PRJ_ID | |
|
116 | assert_response 302 | |
|
117 | @project.reload | |
|
118 | assert_nil @project.repository | |
|
119 | end | |
|
108 | 120 | else |
|
109 | 121 | puts "Darcs test repository NOT FOUND. Skipping functional tests !!!" |
|
110 | 122 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now