]> source.dussan.org Git - redmine.git/commitdiff
scm: mercurial: change Latin-1 path test methods name.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 May 2011 07:25:09 +0000 (07:25 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 7 May 2011 07:25:09 +0000 (07:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5685 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_mercurial_controller_test.rb

index 4e21e575b9af872c8cdf160215aebe9c3b170033..6320dad34d8715deca354fa5b74838cccc70891c 100644 (file)
@@ -123,7 +123,7 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
       end
     end
 
-    def test_show_directory_latin_1
+    def test_show_directory_latin_1_path
       @repository.fetch_changesets
       @repository.reload
       [21, '21', 'adf805632193'].each do |r1|
@@ -199,9 +199,10 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
                  :sibling => { :tag => 'td', :content => /WITHOUT ANY WARRANTY/ }
     end
 
-    def test_entry_show_latin_1
+    def test_entry_show_latin_1_path
       [21, '21', 'adf805632193'].each do |r1|
-        get :entry, :id => PRJ_ID, :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
+        get :entry, :id => PRJ_ID,
+            :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
         assert_response :success
         assert_template 'entry'
         assert_tag :tag => 'th',
@@ -270,16 +271,16 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
       end
     end
 
-    def test_diff_latin_1
+    def test_diff_latin_1_path
       [21, 'adf805632193'].each do |r1|
         get :diff, :id => PRJ_ID, :rev => r1
         assert_response :success
         assert_template 'diff'
         assert_tag :tag => 'th',
                    :content => '2',
-                   :sibling => { :tag => 'td',
-                               :attributes => { :class => /diff_in/ },
-                               :content => /It is written in Python/ }
+                   :sibling => {:tag => 'td',
+                                :attributes => { :class => /diff_in/ },
+                                :content => /It is written in Python/ }
       end
     end
 
@@ -323,9 +324,10 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
       end
     end
 
-    def test_annotate_latin_1
+    def test_annotate_latin_1_path
       [21, '21', 'adf805632193'].each do |r1|
-      get :annotate, :id => PRJ_ID, :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
+      get :annotate, :id => PRJ_ID,
+          :path => ['latin-1-dir', "test-#{@char_1}-2.txt"], :rev => r1
         assert_response :success
         assert_template 'annotate'
         assert_tag :tag => 'th',