@@ -294,6 +294,20 class RepositoriesSubversionControllerTest < ActionController::TestCase | |||||
294 | assert_template 'annotate' |
|
294 | assert_template 'annotate' | |
295 | assert_tag :tag => 'h2', :content => /@ 8/ |
|
295 | assert_tag :tag => 'h2', :content => /@ 8/ | |
296 | end |
|
296 | end | |
|
297 | ||||
|
298 | def test_destroy_valid_repository | |||
|
299 | @request.session[:user_id] = 1 # admin | |||
|
300 | @repository.fetch_changesets | |||
|
301 | @repository.reload | |||
|
302 | assert @repository.changesets.count > 0 | |||
|
303 | ||||
|
304 | get :destroy, :id => PRJ_ID | |||
|
305 | assert_response 302 | |||
|
306 | ||||
|
307 | @project.reload | |||
|
308 | assert_nil @project.repository | |||
|
309 | end | |||
|
310 | ||||
297 | else |
|
311 | else | |
298 | puts "Subversion test repository NOT FOUND. Skipping functional tests !!!" |
|
312 | puts "Subversion test repository NOT FOUND. Skipping functional tests !!!" | |
299 | def test_fake; assert true end |
|
313 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now