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