use assert_select instead of assert_tag in Mercurial annotate test (#14931)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12140 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
435df86757
commit
72e48e6a68
@ -432,30 +432,15 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
|||||||
:rev => r1
|
:rev => r1
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'annotate'
|
assert_template 'annotate'
|
||||||
assert_tag :tag => 'th',
|
assert_select "th.line-num", :text => '1' do
|
||||||
:content => '1',
|
assert_select "+ td.revision" do
|
||||||
:attributes => { :class => 'line-num' },
|
assert_select "a", :text => '20:709858aafd1b'
|
||||||
:sibling =>
|
assert_select "+ td.author", :text => "jsmith" do
|
||||||
{
|
assert_select "+ td",
|
||||||
:tag => 'td',
|
:text => "Mercurial is a distributed version control system."
|
||||||
:attributes => { :class => 'revision' },
|
end
|
||||||
:child => { :tag => 'a', :content => '20:709858aafd1b' }
|
end
|
||||||
}
|
end
|
||||||
assert_tag :tag => 'th',
|
|
||||||
:content => '1',
|
|
||||||
:attributes => { :class => 'line-num' },
|
|
||||||
:sibling =>
|
|
||||||
{
|
|
||||||
:tag => 'td' ,
|
|
||||||
:content => /jsmith/ ,
|
|
||||||
:attributes => { :class => 'author' },
|
|
||||||
}
|
|
||||||
assert_tag :tag => 'th',
|
|
||||||
:content => '1',
|
|
||||||
:attributes => { :class => 'line-num' },
|
|
||||||
:sibling => { :tag => 'td',
|
|
||||||
:content => /Mercurial is a distributed version control system/ }
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user