scm: bazaar: fix functional annotate test.

Test committer is "jsmith". If committer is not "jsmith", test passes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5911 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-26 01:10:43 +00:00
parent 413f5278b2
commit d4d75401b3
1 changed files with 17 additions and 4 deletions

View File

@ -132,10 +132,23 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt']
assert_response :success
assert_template 'annotate'
# Line 2, revision 3
assert_tag :tag => 'th', :content => /2/,
:sibling => { :tag => 'td', :child => { :tag => 'a', :content => /3/ } },
:sibling => { :tag => 'td', :content => /jsmith/ },
assert_tag :tag => 'th', :content => '2',
:sibling => {
:tag => 'td',
:child => {
:tag => 'a',
:content => /3/
}
},
:sibling => { :tag => 'td', :content => /jsmith/ }
assert_tag :tag => 'th', :content => '2',
:sibling => {
:tag => 'td',
:child => {
:tag => 'a',
:content => /3/
}
},
:sibling => { :tag => 'td', :content => /Main purpose/ }
end
else