##// END OF EJS Templates
scm: darcs: add functional test of destroying valid repository (#6713, #4725)....
Toshi MARUYAMA -
r6113:a50ba1ab3961
parent child
Show More
@@ -105,6 +105,18 class RepositoriesDarcsControllerTest < ActionController::TestCase
105 :content => /def remove/ }
105 :content => /def remove/ }
106 end
106 end
107 end
107 end
108
109 def test_destroy_valid_repository
110 @request.session[:user_id] = 1 # admin
111 @repository.fetch_changesets
112 @repository.reload
113 assert @repository.changesets.count > 0
114
115 get :destroy, :id => PRJ_ID
116 assert_response 302
117 @project.reload
118 assert_nil @project.repository
119 end
108 else
120 else
109 puts "Darcs test repository NOT FOUND. Skipping functional tests !!!"
121 puts "Darcs test repository NOT FOUND. Skipping functional tests !!!"
110 def test_fake; assert true end
122 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now