diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2021-08-08 03:24:46 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2021-08-08 03:24:46 -0600 |
| commit | fe99ec60bd7adc60a5d7037aaa008a5abbc34b60 (patch) | |
| tree | dd48b7a2c9fbc56d923db19b60ed47c32eaa66cb | |
| parent | d371ff830d16842f927fd2b2ecd9ec4446e52dc7 (diff) | |
remove redundant indentation in heredoc strings in test suite
| -rw-r--r-- | test/syntax_highlighter_test.rb | 66 |
1 files changed, 33 insertions, 33 deletions
diff --git a/test/syntax_highlighter_test.rb b/test/syntax_highlighter_test.rb index d8d148f0..16356260 100644 --- a/test/syntax_highlighter_test.rb +++ b/test/syntax_highlighter_test.rb @@ -919,21 +919,21 @@ context 'Syntax Highlighter' do test 'should line highlight specified lines relative to start value' do input = <<~EOS - :source-highlighter: rouge + :source-highlighter: rouge - [source%linenums,ruby,start=5,highlight=6] - ---- - get { - render "Hello, World!" - } - ---- + [source%linenums,ruby,start=5,highlight=6] + ---- + get { + render "Hello, World!" + } + ---- EOS expected = <<~EOS.chop - <span class="n">get</span> <span class="p">{</span> - <span class="hll"> <span class="n">render</span> <span class="s2">"Hello, World!"</span> - </span><span class="p">}</span> - </pre> + <span class="n">get</span> <span class="p">{</span> + <span class="hll"> <span class="n">render</span> <span class="s2">"Hello, World!"</span> + </span><span class="p">}</span> + </pre> EOS output = convert_string_to_embedded input, safe: :safe @@ -942,21 +942,21 @@ context 'Syntax Highlighter' do test 'should ignore start attribute when the value is 0' do input = <<~EOS - :source-highlighter: rouge + :source-highlighter: rouge - [source%linenums,ruby,start=0,highlight=6] - ---- - get { - render "Hello, World!" - } - ---- + [source%linenums,ruby,start=0,highlight=6] + ---- + get { + render "Hello, World!" + } + ---- EOS expected = <<~EOS.chop - <span class="n">get</span> <span class="p">{</span> - <span class="n">render</span> <span class="s2">"Hello, World!"</span> - <span class="p">}</span> - </pre> + <span class="n">get</span> <span class="p">{</span> + <span class="n">render</span> <span class="s2">"Hello, World!"</span> + <span class="p">}</span> + </pre> EOS output = convert_string_to_embedded input, safe: :safe @@ -965,21 +965,21 @@ context 'Syntax Highlighter' do test 'should not line highlight when the start attribute is greater than highlight' do input = <<~EOS - :source-highlighter: rouge + :source-highlighter: rouge - [source%linenums,ruby,start=7,highlight=6] - ---- - get { - render "Hello, World!" - } - ---- + [source%linenums,ruby,start=7,highlight=6] + ---- + get { + render "Hello, World!" + } + ---- EOS expected = <<~EOS.chop - <span class="n">get</span> <span class="p">{</span> - <span class="n">render</span> <span class="s2">"Hello, World!"</span> - <span class="p">}</span> - </pre> + <span class="n">get</span> <span class="p">{</span> + <span class="n">render</span> <span class="s2">"Hello, World!"</span> + <span class="p">}</span> + </pre> EOS output = convert_string_to_embedded input, safe: :safe |
