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:
parent
413f5278b2
commit
d4d75401b3
|
@ -132,10 +132,23 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
|
||||||
get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt']
|
get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt']
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'annotate'
|
assert_template 'annotate'
|
||||||
# Line 2, revision 3
|
assert_tag :tag => 'th', :content => '2',
|
||||||
assert_tag :tag => 'th', :content => /2/,
|
:sibling => {
|
||||||
:sibling => { :tag => 'td', :child => { :tag => 'a', :content => /3/ } },
|
:tag => 'td',
|
||||||
:sibling => { :tag => 'td', :content => /jsmith/ },
|
: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/ }
|
:sibling => { :tag => 'td', :content => /Main purpose/ }
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue