Skip to content
Snippets Groups Projects
Commit 12e84b6b authored by Alex Kalderimis's avatar Alex Kalderimis
Browse files

Freeze time in metrics value expectation

parent b003ead8
No related merge requests found
......@@ -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)
......
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