spec/support/helpers.rb in loga-2.2.0 vs spec/support/helpers.rb in loga-2.3.0

- old
+ new

@@ -5,8 +5,15 @@ def time_anchor Time.new(2015, 12, 15, 9, 30, 5.123, '+06:00') end def time_anchor_unix - BigDecimal.new('1450150205.123') + BigDecimal('1450150205.123') + end + + def stub_loga + loga = class_double(Loga).as_stubbed_const + logger = instance_double(Logger) + allow(loga).to receive(:logger).and_return(logger) + loga end end