Commit fe89acc3 authored by Jarka Kadlecova's avatar Jarka Kadlecova

Fix specs for renderer_spec.rb

parent fa978dbe
......@@ -16,6 +16,7 @@ describe Banzai::Renderer do
context 'without cache' do
let(:commit) { create(:project, :repository).commit }
let(:object) { fake_object(fresh: false) }
it 'returns cacheless render field' do
expect(renderer).to receive(:cacheless_render_field).with(commit, :title)
......@@ -27,7 +28,7 @@ describe Banzai::Renderer do
allow(Gitlab::Geo).to receive(:secondary?).and_return(true)
expect(object).to receive(:refresh_markdown_cache!).with(do_update: false)
is_expected.to eq('field_html')
expect(renderer.render_field(object, :field)).to eq('field_html')
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment