@@ -119,9 +119,10 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||||
119 |
|
119 | |||
120 | def test_destroy_valid_repository |
|
120 | def test_destroy_valid_repository | |
121 | @request.session[:user_id] = 1 # admin |
|
121 | @request.session[:user_id] = 1 # admin | |
|
122 | assert_equal 0, @repository.changesets.count | |||
122 | @repository.fetch_changesets |
|
123 | @repository.fetch_changesets | |
123 |
@ |
|
124 | @project.reload | |
124 |
assert @repository.changesets.count |
|
125 | assert_equal NUM_REV, @repository.changesets.count | |
125 |
|
126 | |||
126 | get :destroy, :id => PRJ_ID |
|
127 | get :destroy, :id => PRJ_ID | |
127 | assert_response 302 |
|
128 | assert_response 302 |
General Comments 0
You need to be logged in to leave comments.
Login now