##// END OF EJS Templates
Rails3: scm: mercurial: fix error of test_destroy_invalid_repository at functional test...
Toshi MARUYAMA -
r7086:76738e5e5431
parent child
Show More
@@ -456,9 +456,10 class RepositoriesMercurialControllerTest < ActionController::TestCase
456 456
457 457 def test_destroy_invalid_repository
458 458 @request.session[:user_id] = 1 # admin
459 assert_equal 0, @repository.changesets.count
459 460 @repository.fetch_changesets
460 @repository.reload
461 assert @repository.changesets.count > 0
461 @project.reload
462 assert_equal NUM_REV, @repository.changesets.count
462 463
463 464 get :destroy, :id => PRJ_ID
464 465 assert_response 302
@@ -472,7 +473,7 class RepositoriesMercurialControllerTest < ActionController::TestCase
472 473 )
473 474 assert @repository
474 475 @repository.fetch_changesets
475 @repository.reload
476 @project.reload
476 477 assert_equal 0, @repository.changesets.count
477 478
478 479 get :destroy, :id => PRJ_ID
General Comments 0
You need to be logged in to leave comments. Login now