##// END OF EJS Templates
scm: cvs: add functional test of destroying valid repository (#6713, #4725)....
Toshi MARUYAMA -
r6120:db6b8da9a5fe
parent child
Show More
@@ -209,6 +209,18 class RepositoriesCvsControllerTest < ActionController::TestCase
209 209 }
210 210 }
211 211 end
212
213 def test_destroy_valid_repository
214 @request.session[:user_id] = 1 # admin
215 @repository.fetch_changesets
216 @repository.reload
217 assert @repository.changesets.count > 0
218
219 get :destroy, :id => PRJ_ID
220 assert_response 302
221 @project.reload
222 assert_nil @project.repository
223 end
212 224 else
213 225 puts "CVS test repository NOT FOUND. Skipping functional tests !!!"
214 226 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now