diff options
author | Stan Hu <stanhu@gmail.com> | 2015-08-10 09:08:28 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-08-10 18:07:26 +0300 |
commit | 15d5dfdb33c94ccfd7843f2be35bac2d74abe03e (patch) | |
tree | e832e49912d8a8082a686b0781b55423e368cb3e /spec/helpers/events_helper_spec.rb | |
parent | 77f37fa9094443abe8e60ebd09a82e94d0a0047b (diff) |
Fix diff syntax highlighting
Refactored HTML parser to avoid duplication of newline parsing.
Closes #2235
Diffstat (limited to 'spec/helpers/events_helper_spec.rb')
-rw-r--r-- | spec/helpers/events_helper_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/helpers/events_helper_spec.rb b/spec/helpers/events_helper_spec.rb index b392371deb4..da58ab98462 100644 --- a/spec/helpers/events_helper_spec.rb +++ b/spec/helpers/events_helper_spec.rb @@ -58,7 +58,7 @@ describe EventsHelper do expected = '<pre class="code highlight white ruby">' \ "<code><span class=\"k\">def</span> <span class=\"nf\">test</span>\n" \ " <span class=\"s1\">\'hello world\'</span>\n" \ - "<span class=\"k\">end</span>\n" \ + "<span class=\"k\">end</span>" \ '</code></pre>' expect(event_note(input)).to eq(expected) end |