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'
|
assert_template 'entry'
|
||||||
# Line 19
|
# Line 19
|
||||||
assert_tag :tag => 'th',
|
assert_tag :tag => 'th',
|
||||||
:content => /11/,
|
:content => '11',
|
||||||
:attributes => { :class => /line-num/ },
|
:attributes => { :class => 'line-num' },
|
||||||
:sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ }
|
:sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ }
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -193,8 +193,14 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'annotate'
|
assert_template 'annotate'
|
||||||
# Line 23, changeset 2f9c0091
|
# Line 23, changeset 2f9c0091
|
||||||
assert_tag :tag => 'th', :content => /24/,
|
assert_tag :tag => 'th', :content => '24',
|
||||||
:sibling => { :tag => 'td', :child => { :tag => 'a', :content => /2f9c0091/ } },
|
:sibling => {
|
||||||
|
:tag => 'td',
|
||||||
|
:child => {
|
||||||
|
:tag => 'a',
|
||||||
|
:content => /2f9c0091c754a91af7a9c478e36556b4bde8dcf7/
|
||||||
|
}
|
||||||
|
},
|
||||||
:sibling => { :tag => 'td', :content => /jsmith/ },
|
:sibling => { :tag => 'td', :content => /jsmith/ },
|
||||||
:sibling => { :tag => 'td', :content => /watcher =/ }
|
:sibling => { :tag => 'td', :content => /watcher =/ }
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user