diff options
author | Rubén Dávila <rdavila84@gmail.com> | 2015-12-30 00:52:50 -0500 |
---|---|---|
committer | Rubén Dávila <rdavila84@gmail.com> | 2015-12-30 00:52:50 -0500 |
commit | bb96d631537d3d8181f0d3b762603a012219c3e6 (patch) | |
tree | 3520e34f8f99dd1a3a401ee83d1cb067cd9e3e66 /spec/helpers | |
parent | c031b9d9cd1ea41ab68f46eb5e630efaf901933a (diff) | |
download | gitlab-ce-bb96d631537d3d8181f0d3b762603a012219c3e6.tar.gz |
New implementation for highlighting diff files. #3945
* It is more performant given now we process all the diff file instead
of processing line by line.
* Multiline comments are highlighted correctly.
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/blob_helper_spec.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/spec/helpers/blob_helper_spec.rb b/spec/helpers/blob_helper_spec.rb index 74edef3a2b4..b8bba36439a 100644 --- a/spec/helpers/blob_helper_spec.rb +++ b/spec/helpers/blob_helper_spec.rb @@ -64,15 +64,4 @@ describe BlobHelper do end end end - - describe 'highlight_line' do - let(:expected) do - %q(<span id="LC1" class="line"><span class="nb">puts</span> <span class="s1">'Hello'</span> <span class="idiff">world</span></span>) - end - - it 'should respect the inline diff markup' do - result = highlight_line('demo.rb', "puts 'Hello' <span class='idiff'>world</span>") - expect(result).to eq(expected) - end - end end |