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