diff options
author | http://jneen.net/ <jneen@jneen.net> | 2016-06-21 13:08:24 -0700 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2016-07-14 10:08:16 -0700 |
commit | 2f0b29227d15bc30b2f13ee415ba83d052fd7f68 (patch) | |
tree | cf0f1754614a50fa17afc174c88d8bc298c7b9b0 | |
parent | ca32a542d7a36c1d27fc8851534a0c15048a79dd (diff) | |
download | gitlab-ce-2f0b29227d15bc30b2f13ee415ba83d052fd7f68.tar.gz |
stub out errors from the formatter
since we've eliminated #block_code
-rw-r--r-- | spec/lib/banzai/filter/syntax_highlight_filter_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/banzai/filter/syntax_highlight_filter_spec.rb b/spec/lib/banzai/filter/syntax_highlight_filter_spec.rb index 50be175c1c3..48ebc81cf82 100644 --- a/spec/lib/banzai/filter/syntax_highlight_filter_spec.rb +++ b/spec/lib/banzai/filter/syntax_highlight_filter_spec.rb @@ -9,7 +9,7 @@ describe Banzai::Filter::SyntaxHighlightFilter, lib: true do end 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>') expect(result.to_html).to eq('<pre>This is a test</pre>') |