Sha256: 85cdea3f886566ee80f33976d04150f269b6edeae8f05dfa523dd59683524035

Contents?: true

Size: 272 Bytes

Versions: 10

Compression:

Stored size: 272 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.new('1450150205.123')
  end

  def hostname_anchor
    'bird.example.com'
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
loga-2.1.2 spec/support/helpers.rb
loga-2.1.1 spec/support/helpers.rb
loga-2.0.0 spec/support/helpers.rb
loga-1.4.0 spec/support/helpers.rb
loga-1.3.0 spec/support/helpers.rb
loga-1.2.1 spec/support/helpers.rb
loga-1.1.1 spec/support/helpers.rb
loga-1.1.0 spec/support/helpers.rb
loga-1.0.0 spec/support/helpers.rb
loga-2.1.0 spec/support/helpers.rb