diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-28 18:36:03 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-28 18:36:03 +0000 |
commit | cc79feabe2d132517fc22fd86520d19274c831fe (patch) | |
tree | 0e538a8a6106655be44defa4fc491aae8e47199a | |
parent | 71c5d6c8ee4c15432d62e268133725f7292d8d89 (diff) | |
download | redmine-cc79feabe2d132517fc22fd86520d19274c831fe.tar.gz redmine-cc79feabe2d132517fc22fd86520d19274c831fe.zip |
Adds assertions for subversion annotate.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10107 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/repositories_subversion_controller_test.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index 5bee2a3b6..a853a1028 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -367,6 +367,19 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase :path => repository_path_hash(['subversion_test', 'helloworld.c'])[:param] assert_response :success 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 def test_annotate_at_given_revision |