diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-09-18 05:44:41 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-09-18 05:44:41 +0000 |
commit | eaf05a87b4759ec9ceb9e7b7620cd7c0cdc6eb72 (patch) | |
tree | 11681f23e221a5632e38354b0091ab8a69b56219 /test/functional/repositories_bazaar_controller_test.rb | |
parent | 72e48e6a68fff58fe656ba76aebe74e2a1dcba05 (diff) | |
download | redmine-eaf05a87b4759ec9ceb9e7b7620cd7c0cdc6eb72.tar.gz redmine-eaf05a87b4759ec9ceb9e7b7620cd7c0cdc6eb72.zip |
use assert_select instead of assert_tag in Bazaar annotate test (#14931)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12141 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/repositories_bazaar_controller_test.rb')
-rw-r--r-- | test/functional/repositories_bazaar_controller_test.rb | 29 |
1 files changed, 9 insertions, 20 deletions
diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb index 3da5400b4..892a08fb8 100644 --- a/test/functional/repositories_bazaar_controller_test.rb +++ b/test/functional/repositories_bazaar_controller_test.rb @@ -137,26 +137,15 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase :path => repository_path_hash(['doc-mkdir.txt'])[:param] assert_response :success assert_template 'annotate' - assert_tag :tag => 'th', :content => '2', - :sibling => { - :tag => 'td', - :child => { - :tag => 'a', - :content => '3' - } - } - assert_tag :tag => 'th', :content => '2', - :sibling => { :tag => 'td', :content => /jsmith/ } - assert_tag :tag => 'th', :content => '2', - :sibling => { - :tag => 'td', - :child => { - :tag => 'a', - :content => '3' - } - } - assert_tag :tag => 'th', :content => '2', - :sibling => { :tag => 'td', :content => /Main purpose/ } + assert_select "th.line-num", :text => '2' do + assert_select "+ td.revision" do + assert_select "a", :text => '3' + assert_select "+ td.author", :text => "jsmith@" do + assert_select "+ td", + :text => "Main purpose:" + end + end + end end def test_destroy_valid_repository |