Skip to content
Snippets Groups Projects
Commit d6a145d4 authored by Robert Speicher's avatar Robert Speicher
Browse files

Fix two more failing specs

parent c401543d
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -28,8 +28,7 @@ describe EventsHelper do
 
it 'should display the first line of a code block' do
input = "```\nCode block\nwith two lines\n```"
expected = '<pre class="code highlight white plaintext"><code>' \
'Code block...</code></pre>'
expected = %r{<pre.+><code>Code block\.\.\.</code></pre>}
 
expect(event_note(input)).to match(expected)
end
Loading
Loading
@@ -55,7 +54,7 @@ describe EventsHelper do
 
it 'should preserve code color scheme' do
input = "```ruby\ndef test\n 'hello world'\nend\n```"
expected = '<pre class="code highlight white ruby">' \
expected = '<pre class="code highlight js-syntax-highlight 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>" \
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