@@ -132,9 +132,10 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||||
132 |
|
132 | |||
133 | def test_destroy_invalid_repository |
|
133 | def test_destroy_invalid_repository | |
134 | @request.session[:user_id] = 1 # admin |
|
134 | @request.session[:user_id] = 1 # admin | |
|
135 | assert_equal 0, @repository.changesets.count | |||
135 | @repository.fetch_changesets |
|
136 | @repository.fetch_changesets | |
136 |
@ |
|
137 | @project.reload | |
137 |
assert @repository.changesets.count |
|
138 | assert_equal NUM_REV, @repository.changesets.count | |
138 |
|
139 | |||
139 | get :destroy, :id => PRJ_ID |
|
140 | get :destroy, :id => PRJ_ID | |
140 | assert_response 302 |
|
141 | assert_response 302 | |
@@ -148,7 +149,7 class RepositoriesDarcsControllerTest < ActionController::TestCase | |||||
148 | ) |
|
149 | ) | |
149 | assert @repository |
|
150 | assert @repository | |
150 | @repository.fetch_changesets |
|
151 | @repository.fetch_changesets | |
151 |
@ |
|
152 | @project.reload | |
152 | assert_equal 0, @repository.changesets.count |
|
153 | assert_equal 0, @repository.changesets.count | |
153 |
|
154 | |||
154 | get :destroy, :id => PRJ_ID |
|
155 | get :destroy, :id => PRJ_ID |
General Comments 0
You need to be logged in to leave comments.
Login now