@@ -354,6 +354,17 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
354 | :sibling => { :tag => 'td', :content => /watcher =/ } |
|
354 | :sibling => { :tag => 'td', :content => /watcher =/ } | |
355 | end |
|
355 | end | |
356 |
|
356 | |||
|
357 | def test_annotate_not_in_tip | |||
|
358 | @repository.fetch_changesets | |||
|
359 | @repository.reload | |||
|
360 | assert @repository.changesets.size > 0 | |||
|
361 | ||||
|
362 | get :annotate, :id => PRJ_ID, | |||
|
363 | :path => ['sources', 'welcome_controller.rb'] | |||
|
364 | assert_response 404 | |||
|
365 | assert_error_tag :content => /was not found/ | |||
|
366 | end | |||
|
367 | ||||
357 | def test_annotate_at_given_revision |
|
368 | def test_annotate_at_given_revision | |
358 | @repository.fetch_changesets |
|
369 | @repository.fetch_changesets | |
359 | @repository.reload |
|
370 | @repository.reload |
General Comments 0
You need to be logged in to leave comments.
Login now