]> source.dussan.org Git - redmine.git/commitdiff
use assert_select instead of assert_tag in Git non ASCII path annotate test (#14931)
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 18 Sep 2013 10:36:38 +0000 (10:36 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 18 Sep 2013 10:36:38 +0000 (10:36 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12150 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_git_controller_test.rb

index adb06b0815decaf287c99d48b2124aa45734219c..cb482aad7c2f66ce3e5783e2d8d46118a0bc5f1f 100644 (file)
@@ -532,11 +532,15 @@ class RepositoriesGitControllerTest < ActionController::TestCase
             get :annotate, :id => PRJ_ID,
                 :path => repository_path_hash(['latin-1-dir', "test-#{@char_1}.txt"])[:param],
                 :rev => r1
-            assert_tag :tag => 'th',
-                       :content => '1',
-                       :attributes => { :class => 'line-num' },
-                       :sibling => { :tag => 'td',
-                                     :content => /test-#{@char_1}.txt/ }
+            assert_select "th.line-num", :text => '1' do
+              assert_select "+ td.revision" do
+                assert_select "a", :text => '57ca437c'
+                  assert_select "+ td.author", :text => "jsmith" do
+                    assert_select "+ td",
+                          :text => "test-#{@char_1}.txt"
+                  end
+                end
+            end
           end
         end
       end