Sha256: c35afa031346634fc735f678052d6e6dff707f9a38774c0828118b92961d30f9

Contents?: true

Size: 387 Bytes

Versions: 12

Compression:

Stored size: 387 Bytes

Contents

require 'bigdecimal'

module Helpers
  # Time used when testing timestamp
  def time_anchor
    Time.new(2015, 12, 15, 9, 30, 5.123, '+06:00')
  end

  def time_anchor_unix
    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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
loga-2.8.0 spec/support/helpers.rb
loga-2.7.0 spec/support/helpers.rb
loga-2.6.1 spec/support/helpers.rb
loga-2.6.0 spec/support/helpers.rb
loga-2.5.4 spec/support/helpers.rb
loga-2.5.3 spec/support/helpers.rb
loga-2.5.2 spec/support/helpers.rb
loga-2.5.1 spec/support/helpers.rb
loga-2.5.0 spec/support/helpers.rb
loga-2.4.0 spec/support/helpers.rb
loga-2.3.1 spec/support/helpers.rb
loga-2.3.0 spec/support/helpers.rb