@@ -354,6 +354,17 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
354 | 354 | :sibling => { :tag => 'td', :content => /watcher =/ } |
|
355 | 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 | 368 | def test_annotate_at_given_revision |
|
358 | 369 | @repository.fetch_changesets |
|
359 | 370 | @repository.reload |
General Comments 0
You need to be logged in to leave comments.
Login now