scm: mercurial: add functional test of annotate file which does not exist in *tip* is not found.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6041 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
4c7f5b4e41
commit
dfe16e1bca
|
@ -354,6 +354,17 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||||
:sibling => { :tag => 'td', :content => /watcher =/ }
|
:sibling => { :tag => 'td', :content => /watcher =/ }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_annotate_not_in_tip
|
||||||
|
@repository.fetch_changesets
|
||||||
|
@repository.reload
|
||||||
|
assert @repository.changesets.size > 0
|
||||||
|
|
||||||
|
get :annotate, :id => PRJ_ID,
|
||||||
|
:path => ['sources', 'welcome_controller.rb']
|
||||||
|
assert_response 404
|
||||||
|
assert_error_tag :content => /was not found/
|
||||||
|
end
|
||||||
|
|
||||||
def test_annotate_at_given_revision
|
def test_annotate_at_given_revision
|
||||||
@repository.fetch_changesets
|
@repository.fetch_changesets
|
||||||
@repository.reload
|
@repository.reload
|
||||||
|
|
Loading…
Reference in New Issue