Skip to content
Snippets Groups Projects
Commit ff7e679b authored by http://jneen.net/'s avatar http://jneen.net/
Browse files

we no longer encode double-quotes

parent 4365144f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -28,13 +28,13 @@ describe Gitlab::Diff::Highlight, lib: true do
end
 
it 'highlights and marks removed lines' do
code = %Q{-<span id="LC9" class="line"> <span class="k">raise</span> <span class="s2">&quot;System commands must be given as an array of strings&quot;</span></span>\n}
code = %Q{-<span id="LC9" class="line"> <span class="k">raise</span> <span class="s2">"System commands must be given as an array of strings"</span></span>\n}
 
expect(subject[4].text).to eq(code)
end
 
it 'highlights and marks added lines' do
code = %Q{+<span id="LC9" class="line"> <span class="k">raise</span> <span class="no"><span class='idiff left'>RuntimeError</span></span><span class="p"><span class='idiff'>,</span></span><span class='idiff right'> </span><span class="s2">&quot;System commands must be given as an array of strings&quot;</span></span>\n}
code = %Q{+<span id="LC9" class="line"> <span class="k">raise</span> <span class="no"><span class='idiff left'>RuntimeError</span></span><span class="p"><span class='idiff'>,</span></span><span class='idiff right'> </span><span class="s2">"System commands must be given as an array of strings"</span></span>\n}
 
expect(subject[5].text).to eq(code)
end
Loading
Loading
@@ -67,7 +67,7 @@ describe Gitlab::Diff::Highlight, lib: true do
end
 
it 'marks added lines' do
code = %Q{+ raise <span class='idiff left right'>RuntimeError, </span>&quot;System commands must be given as an array of strings&quot;}
code = %Q{+ raise <span class='idiff left right'>RuntimeError, </span>"System commands must be given as an array of strings"}
 
expect(subject[5].text).to eq(code)
expect(subject[5].text).to be_html_safe
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment