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

stub out errors from the formatter

since we've eliminated #block_code
parent ca32a542
No related branches found
No related tags found
No related merge requests found
Loading
@@ -9,7 +9,7 @@ describe Banzai::Filter::SyntaxHighlightFilter, lib: true do
Loading
@@ -9,7 +9,7 @@ describe Banzai::Filter::SyntaxHighlightFilter, lib: true do
end end
   
it 'passes through invalid code blocks' do it 'passes through invalid code blocks' do
allow_any_instance_of(described_class).to receive(:block_code).and_raise(StandardError) allow_any_instance_of(Rouge::Formatter).to receive(:format).and_raise(StandardError)
   
result = filter('<pre><code>This is a test</code></pre>') result = filter('<pre><code>This is a test</code></pre>')
expect(result.to_html).to eq('<pre>This is a test</pre>') expect(result.to_html).to eq('<pre>This is a test</pre>')
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