As far as we use let it lazy inits the metric. Also, in some tests we have before block. It calls metric before the test and do not allow to Time.stub block to be called before metric inits. I've removed before block to make the test works with Time.stub block
@davydovanton looks like previous PR was merged without tests passed :(
As far as we use
let
it lazy inits themetric
. Also, in some tests we havebefore
block. It calls metric before the test and do not allow toTime.stub
block to be called before metric inits. I've removedbefore
block to make the test works withTime.stub
block @davydovanton looks like previous PR was merged without tests passed :(