@@ -209,6 +209,18 class RepositoriesCvsControllerTest < ActionController::TestCase | |||||
209 | } |
|
209 | } | |
210 | } |
|
210 | } | |
211 | end |
|
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 | else |
|
224 | else | |
213 | puts "CVS test repository NOT FOUND. Skipping functional tests !!!" |
|
225 | puts "CVS test repository NOT FOUND. Skipping functional tests !!!" | |
214 | def test_fake; assert true end |
|
226 | def test_fake; assert true end |
General Comments 0
You need to be logged in to leave comments.
Login now