##// END OF EJS Templates
scm: bazaar: add functional test of destroying valid repository (#6713, #4725)....
Toshi MARUYAMA -
r6115:67cbda91ed0c
parent child
Show More
@@ -146,6 +146,18 class RepositoriesBazaarControllerTest < ActionController::TestCase
146 146 assert_tag :tag => 'th', :content => '2',
147 147 :sibling => { :tag => 'td', :content => /Main purpose/ }
148 148 end
149
150 def test_destroy_valid_repository
151 @request.session[:user_id] = 1 # admin
152 @repository.fetch_changesets
153 @repository.reload
154 assert @repository.changesets.count > 0
155
156 get :destroy, :id => PRJ_ID
157 assert_response 302
158 @project.reload
159 assert_nil @project.repository
160 end
149 161 else
150 162 puts "Bazaar test repository NOT FOUND. Skipping functional tests !!!"
151 163 def test_fake; assert true end
General Comments 0
You need to be logged in to leave comments. Login now