@@ -375,8 +375,10 class RepositoriesGitControllerTest < ActionController::TestCase | |||||
375 | end |
|
375 | end | |
376 |
|
376 | |||
377 | def test_revision |
|
377 | def test_revision | |
|
378 | assert_equal 0, @repository.changesets.count | |||
378 | @repository.fetch_changesets |
|
379 | @repository.fetch_changesets | |
379 |
@ |
|
380 | @project.reload | |
|
381 | assert_equal NUM_REV, @repository.changesets.count | |||
380 | ['61b685fbe55ab05b5ac68402d5720c1a6ac973d1', '61b685f'].each do |r| |
|
382 | ['61b685fbe55ab05b5ac68402d5720c1a6ac973d1', '61b685f'].each do |r| | |
381 | get :revision, :id => PRJ_ID, :rev => r |
|
383 | get :revision, :id => PRJ_ID, :rev => r | |
382 | assert_response :success |
|
384 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now