From 0f8680adfd5ec0486505fb1491cc38a1f45a4a8a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 5 Jan 2011 15:01:39 +0000 Subject: [PATCH] scm: mercurial: fix comment and change // to '' some strings of functional test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4631 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../repositories_mercurial_controller_test.rb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb index d8f29ec8b..a781b5c0d 100644 --- a/test/functional/repositories_mercurial_controller_test.rb +++ b/test/functional/repositories_mercurial_controller_test.rb @@ -50,9 +50,9 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_template 'show' assert_not_nil assigns(:entries) assert_equal 3, assigns(:entries).size - assert assigns(:entries).detect {|e| e.name == 'images' && e.kind == 'dir'} + assert assigns(:entries).detect {|e| e.name == 'images' && e.kind == 'dir'} assert assigns(:entries).detect {|e| e.name == 'sources' && e.kind == 'dir'} - assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} + assert assigns(:entries).detect {|e| e.name == 'README' && e.kind == 'file'} end def test_show_directory @@ -86,10 +86,10 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase get :entry, :id => 3, :path => ['sources', 'watchers_controller.rb'] assert_response :success assert_template 'entry' - # Line 19 + # Line 10 assert_tag :tag => 'th', - :content => /10/, - :attributes => { :class => /line-num/ }, + :content => '10', + :attributes => { :class => 'line-num' }, :sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ } end @@ -115,7 +115,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase assert_template 'diff' # Line 22 removed assert_tag :tag => 'th', - :content => /22/, + :content => '22', :sibling => { :tag => 'td', :attributes => { :class => /diff_out/ }, :content => /def remove/ } -- 2.39.5