OSDN Git Service

scm: git: fix functional annotate test.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 May 2011 23:10:27 +0000 (23:10 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 May 2011 23:10:27 +0000 (23:10 +0000)
Test committer is "jsmith". If committer is not "jsmith", test passes.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5694 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_git_controller_test.rb

index b8ae175..ca444b6 100644 (file)
@@ -201,7 +201,15 @@ class RepositoriesGitControllerTest < ActionController::TestCase
                        :content => /2f9c0091c754a91af7a9c478e36556b4bde8dcf7/
                        }
                     },
-                 :sibling => { :tag => 'td', :content => /jsmith/ },
+                 :sibling => { :tag => 'td', :content => /jsmith/ }
+      assert_tag :tag => 'th', :content => '24',
+                 :sibling => {
+                    :tag => 'td',
+                    :child => {
+                       :tag => 'a',
+                       :content => /2f9c0091c754a91af7a9c478e36556b4bde8dcf7/
+                       }
+                    },
                  :sibling => { :tag => 'td', :content => /watcher =/ }
     end