Adds assertions for subversion annotate.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10107 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
71c5d6c8ee
commit
cc79feabe2
|
@ -367,6 +367,19 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
||||||
:path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
|
:path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param]
|
||||||
assert_response :success
|
assert_response :success
|
||||||
assert_template 'annotate'
|
assert_template 'annotate'
|
||||||
|
|
||||||
|
assert_select 'tr' do
|
||||||
|
assert_select 'th.line-num', :text => '1'
|
||||||
|
assert_select 'td.revision', :text => '4'
|
||||||
|
assert_select 'td.author', :text => 'jp'
|
||||||
|
assert_select 'td', :text => /stdio.h/
|
||||||
|
end
|
||||||
|
# Same revision
|
||||||
|
assert_select 'tr' do
|
||||||
|
assert_select 'th.line-num', :text => '2'
|
||||||
|
assert_select 'td.revision', :text => ''
|
||||||
|
assert_select 'td.author', :text => ''
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_annotate_at_given_revision
|
def test_annotate_at_given_revision
|
||||||
|
|
Loading…
Reference in New Issue