scm: git: more strict functional test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5453 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
a20f140734
commit
19d524cdad
|
@ -137,8 +137,8 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||
assert_template 'entry'
|
||||
# Line 19
|
||||
assert_tag :tag => 'th',
|
||||
:content => /11/,
|
||||
:attributes => { :class => /line-num/ },
|
||||
:content => '11',
|
||||
:attributes => { :class => 'line-num' },
|
||||
:sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ }
|
||||
end
|
||||
|
||||
|
@ -193,8 +193,14 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||
assert_response :success
|
||||
assert_template 'annotate'
|
||||
# Line 23, changeset 2f9c0091
|
||||
assert_tag :tag => 'th', :content => /24/,
|
||||
:sibling => { :tag => 'td', :child => { :tag => 'a', :content => /2f9c0091/ } },
|
||||
assert_tag :tag => 'th', :content => '24',
|
||||
:sibling => {
|
||||
:tag => 'td',
|
||||
:child => {
|
||||
:tag => 'a',
|
||||
:content => /2f9c0091c754a91af7a9c478e36556b4bde8dcf7/
|
||||
}
|
||||
},
|
||||
:sibling => { :tag => 'td', :content => /jsmith/ },
|
||||
:sibling => { :tag => 'td', :content => /watcher =/ }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue