Sha256: dd94b842f20ab11e19c749718ef8dc4eedc7fb3cc34aca076b018d26d69a2966

Contents?: true

Size: 244 Bytes

Versions: 178

Compression:

Stored size: 244 Bytes

Contents

module TimeHelpers
  def fixed_time
    @fixed_time ||= Time.utc(2014, 01, 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

178 entries across 178 versions & 1 rubygems

Version Path
appsignal-0.12.beta.38 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.37 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.36 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.35 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.34 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.33 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.32 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.31 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.30 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.29 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.28 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.27 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.26 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.25 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.24 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.23 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.22 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.21 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.20 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.19 spec/support/helpers/time_helpers.rb