From 19d524cdad8f19e9bcd2e003da9e0ed5dc54f59a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 14 Apr 2011 10:18:16 +0000 Subject: [PATCH] scm: git: more strict functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5453 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../functional/repositories_git_controller_test.rb | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb index 469d9b66b..8ed177287 100644 --- a/test/functional/repositories_git_controller_test.rb +++ b/test/functional/repositories_git_controller_test.rb @@ -137,8 +137,8 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert_template 'entry' # Line 19 assert_tag :tag => 'th', - :content => /11/, - :attributes => { :class => /line-num/ }, + :content => '11', + :attributes => { :class => 'line-num' }, :sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ } end @@ -193,8 +193,14 @@ class RepositoriesGitControllerTest < ActionController::TestCase assert_response :success assert_template 'annotate' # Line 23, changeset 2f9c0091 - assert_tag :tag => 'th', :content => /24/, - :sibling => { :tag => 'td', :child => { :tag => 'a', :content => /2f9c0091/ } }, + assert_tag :tag => 'th', :content => '24', + :sibling => { + :tag => 'td', + :child => { + :tag => 'a', + :content => /2f9c0091c754a91af7a9c478e36556b4bde8dcf7/ + } + }, :sibling => { :tag => 'td', :content => /jsmith/ }, :sibling => { :tag => 'td', :content => /watcher =/ } end