@@ -229,9 +229,10 class RepositoriesCvsControllerTest < ActionController::TestCase | |||
|
229 | 229 | |
|
230 | 230 | def test_destroy_invalid_repository |
|
231 | 231 | @request.session[:user_id] = 1 # admin |
|
232 | assert_equal 0, @repository.changesets.count | |
|
232 | 233 | @repository.fetch_changesets |
|
233 |
@ |
|
|
234 |
assert @repository.changesets.count |
|
|
234 | @project.reload | |
|
235 | assert_equal NUM_REV, @repository.changesets.count | |
|
235 | 236 | |
|
236 | 237 | get :destroy, :id => PRJ_ID |
|
237 | 238 | assert_response 302 |
@@ -246,7 +247,7 class RepositoriesCvsControllerTest < ActionController::TestCase | |||
|
246 | 247 | ) |
|
247 | 248 | assert @repository |
|
248 | 249 | @repository.fetch_changesets |
|
249 |
@ |
|
|
250 | @project.reload | |
|
250 | 251 | assert_equal 0, @repository.changesets.count |
|
251 | 252 | |
|
252 | 253 | get :destroy, :id => PRJ_ID |
General Comments 0
You need to be logged in to leave comments.
Login now