##// END OF EJS Templates
Rails3: scm: darcs: fix error of test_destroy_invalid_repository at functional test...
Toshi MARUYAMA -
r7041:e8e2fde49012
parent child
Show More
@@ -132,9 +132,10 class RepositoriesDarcsControllerTest < ActionController::TestCase
132 132
133 133 def test_destroy_invalid_repository
134 134 @request.session[:user_id] = 1 # admin
135 assert_equal 0, @repository.changesets.count
135 136 @repository.fetch_changesets
136 @repository.reload
137 assert @repository.changesets.count > 0
137 @project.reload
138 assert_equal NUM_REV, @repository.changesets.count
138 139
139 140 get :destroy, :id => PRJ_ID
140 141 assert_response 302
@@ -148,7 +149,7 class RepositoriesDarcsControllerTest < ActionController::TestCase
148 149 )
149 150 assert @repository
150 151 @repository.fetch_changesets
151 @repository.reload
152 @project.reload
152 153 assert_equal 0, @repository.changesets.count
153 154
154 155 get :destroy, :id => PRJ_ID
General Comments 0
You need to be logged in to leave comments. Login now