diff options
Diffstat (limited to 'spec/lib/banzai/renderer_spec.rb')
-rw-r--r-- | spec/lib/banzai/renderer_spec.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/spec/lib/banzai/renderer_spec.rb b/spec/lib/banzai/renderer_spec.rb index 8c9d8d51d5f..ef503b8ec52 100644 --- a/spec/lib/banzai/renderer_spec.rb +++ b/spec/lib/banzai/renderer_spec.rb @@ -87,15 +87,11 @@ RSpec.describe Banzai::Renderer, feature_category: :team_planning do describe '#cacheless_render' do context 'without cache' do let(:object) { fake_object(fresh: false) } - let(:histogram) { double('prometheus histogram') } it 'returns cacheless render field' do allow(renderer).to receive(:render_result).and_return(output: 'test') - allow(renderer).to receive(:real_duration_histogram).and_return(histogram) - allow(renderer).to receive(:cpu_duration_histogram).and_return(histogram) expect(renderer).to receive(:render_result).with('test', {}) - expect(histogram).to receive(:observe).twice renderer.cacheless_render('test') end |