Skip to content
Snippets Groups Projects

Freeze time in metrics value expectation

Merged Alex Kalderimis requested to merge 362591-ajk into master
All threads resolved!
@@ -5,6 +5,10 @@
let(:options) { params[:options] }
let(:metric) { described_class.new(time_frame: time_frame, options: options) }
around do |example|
freeze_time { example.run }
end
before do
if described_class.respond_to?(:relation) && described_class.relation.respond_to?(:connection)
allow(described_class.relation.connection).to receive(:transaction_open?).and_return(false)
Loading