]> source.dussan.org Git - redmine.git/commitdiff
fix source indent of ApplicationHelperTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Oct 2020 13:35:00 +0000 (13:35 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Mon, 26 Oct 2020 13:35:00 +0000 (13:35 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@20195 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/helpers/application_helper_test.rb

index 91f1b097ac3f766fee2e94566acce061b472fb1d..ec196771ee8ab5f3f0ddc7268c58a48acedb1f11 100644 (file)
@@ -1326,12 +1326,13 @@ class ApplicationHelperTest < Redmine::HelperTest
   end
 
   def test_text_formatting
-    to_test = {'*_+bold, italic and underline+_*' => '<strong><em><ins>bold, italic and underline</ins></em></strong>',
-               '(_text within parentheses_)' => '(<em>text within parentheses</em>)',
-               'a *Humane Web* Text Generator' => 'a <strong>Humane Web</strong> Text Generator',
-               'a H *umane* W *eb* T *ext* G *enerator*' => 'a H <strong>umane</strong> W <strong>eb</strong> T <strong>ext</strong> G <strong>enerator</strong>',
-               'a *H* umane *W* eb *T* ext *G* enerator' => 'a <strong>H</strong> umane <strong>W</strong> eb <strong>T</strong> ext <strong>G</strong> enerator',
-              }
+    to_test = {
+      '*_+bold, italic and underline+_*' => '<strong><em><ins>bold, italic and underline</ins></em></strong>',
+      '(_text within parentheses_)' => '(<em>text within parentheses</em>)',
+      'a *Humane Web* Text Generator' => 'a <strong>Humane Web</strong> Text Generator',
+      'a H *umane* W *eb* T *ext* G *enerator*' => 'a H <strong>umane</strong> W <strong>eb</strong> T <strong>ext</strong> G <strong>enerator</strong>',
+      'a *H* umane *W* eb *T* ext *G* enerator' => 'a <strong>H</strong> umane <strong>W</strong> eb <strong>T</strong> ext <strong>G</strong> enerator',
+    }
     to_test.each {|text, result| assert_equal "<p>#{result}</p>", textilizable(text)}
   end
 
@@ -1480,14 +1481,14 @@ class ApplicationHelperTest < Redmine::HelperTest
   end
 
   if Object.const_defined?(:Redcarpet)
-  def test_toc_with_markdown_formatting_should_be_parsed
-    with_settings :text_formatting => 'markdown' do
-      assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading'
-      assert_select_in textilizable("{{<toc}}\n\n# Heading"), 'ul.toc.left li', :text => 'Heading'
-      assert_select_in textilizable("{{>toc}}\n\n# Heading"), 'ul.toc.right li', :text => 'Heading'
+    def test_toc_with_markdown_formatting_should_be_parsed
+      with_settings :text_formatting => 'markdown' do
+        assert_select_in textilizable("{{toc}}\n\n# Heading"), 'ul.toc li', :text => 'Heading'
+        assert_select_in textilizable("{{<toc}}\n\n# Heading"), 'ul.toc.left li', :text => 'Heading'
+        assert_select_in textilizable("{{>toc}}\n\n# Heading"), 'ul.toc.right li', :text => 'Heading'
+      end
     end
   end
-  end
 
   def test_section_edit_links
     raw = <<~RAW