Sha256: ffd11b04b27a6245f4240561daf82e80cea535d38c832d624b4e29c40f5796fb

Contents?: true

Size: 243 Bytes

Versions: 428

Compression:

Stored size: 243 Bytes

Contents

module TimeHelpers
  def fixed_time
    @fixed_time ||= Time.utc(2014, 1, 15, 11, 0, 0).to_f
  end

  def advance_frozen_time(time, addition)
    Time.at(time.to_f + addition).tap do |new_time|
      Timecop.freeze(new_time)
    end
  end
end

Version data entries

428 entries across 428 versions & 1 rubygems

Version Path
appsignal-4.0.6-java spec/support/helpers/time_helpers.rb
appsignal-4.0.6 spec/support/helpers/time_helpers.rb
appsignal-4.0.5-java spec/support/helpers/time_helpers.rb
appsignal-4.0.5 spec/support/helpers/time_helpers.rb
appsignal-4.0.4-java spec/support/helpers/time_helpers.rb
appsignal-4.0.4 spec/support/helpers/time_helpers.rb
appsignal-4.0.3-java spec/support/helpers/time_helpers.rb
appsignal-4.0.3 spec/support/helpers/time_helpers.rb
appsignal-4.0.2-java spec/support/helpers/time_helpers.rb
appsignal-4.0.2 spec/support/helpers/time_helpers.rb
appsignal-4.0.1-java spec/support/helpers/time_helpers.rb
appsignal-4.0.1 spec/support/helpers/time_helpers.rb
appsignal-4.0.0-java spec/support/helpers/time_helpers.rb
appsignal-4.0.0 spec/support/helpers/time_helpers.rb
appsignal-3.13.1-java spec/support/helpers/time_helpers.rb
appsignal-3.13.1 spec/support/helpers/time_helpers.rb
appsignal-3.13.1.alpha.1-java spec/support/helpers/time_helpers.rb
appsignal-3.13.1.alpha.1 spec/support/helpers/time_helpers.rb
appsignal-4.0.0.beta.2-java spec/support/helpers/time_helpers.rb
appsignal-4.0.0.beta.2 spec/support/helpers/time_helpers.rb