diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-28 18:16:55 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-07-28 18:16:55 +0000 |
commit | 71c5d6c8ee4c15432d62e268133725f7292d8d89 (patch) | |
tree | 215a1c1ac848181c638b8ebf4164c60c760a045a /test/functional/repositories_mercurial_controller_test.rb | |
parent | 65524cc1cc638bc9a5e01721425c55ab1a572e90 (diff) | |
download | redmine-71c5d6c8ee4c15432d62e268133725f7292d8d89.tar.gz redmine-71c5d6c8ee4c15432d62e268133725f7292d8d89.zip |
Use assert_select instead of assert_tag.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10106 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_mercurial_controller_test.rb')
-rw-r--r-- | test/functional/repositories_mercurial_controller_test.rb | 29 |
1 files changed, 7 insertions, 22 deletions
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index 42e3f5897..bfcf2d669 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -376,29 +376,14 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase :path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param] assert_response :success assert_template 'annotate' + # Line 22, revision 4:def6d2f1254a - assert_tag :tag => 'th', - :content => '22', - :attributes => { :class => 'line-num' }, - :sibling => - { - :tag => 'td', - :attributes => { :class => 'revision' }, - :child => { :tag => 'a', :content => '4:def6d2f1254a' } - } - assert_tag :tag => 'th', - :content => '22', - :attributes => { :class => 'line-num' }, - :sibling => - { - :tag => 'td' , - :content => 'jsmith' , - :attributes => { :class => 'author' }, - } - assert_tag :tag => 'th', - :content => '22', - :attributes => { :class => 'line-num' }, - :sibling => { :tag => 'td', :content => /remove_watcher/ } + assert_select 'tr' do + assert_select 'th.line-num', :text => '22' + assert_select 'td.revision', :text => '4:def6d2f1254a' + assert_select 'td.author', :text => 'jsmith' + assert_select 'td', :text => /remove_watcher/ + end end def test_annotate_not_in_tip |