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-1.0.7 spec/support/helpers/time_helpers.rb
appsignal-1.0.6 spec/support/helpers/time_helpers.rb
appsignal-1.1.0.beta.11 spec/support/helpers/time_helpers.rb
appsignal-1.0.6.beta.4 spec/support/helpers/time_helpers.rb
appsignal-1.1.0.beta.10 spec/support/helpers/time_helpers.rb
appsignal-1.0.6.beta.3 spec/support/helpers/time_helpers.rb
appsignal-1.1.0.beta.9 spec/support/helpers/time_helpers.rb
appsignal-1.0.6.beta.2 spec/support/helpers/time_helpers.rb
appsignal-1.1.0.beta.8 spec/support/helpers/time_helpers.rb
appsignal-1.0.6.beta.1 spec/support/helpers/time_helpers.rb
appsignal-1.0.5 spec/support/helpers/time_helpers.rb
appsignal-1.1.0.beta.7 spec/support/helpers/time_helpers.rb
appsignal-1.0.5.beta.4 spec/support/helpers/time_helpers.rb
appsignal-1.0.5.beta.3 spec/support/helpers/time_helpers.rb
appsignal-1.0.5.beta.2 spec/support/helpers/time_helpers.rb
appsignal-1.0.5.beta.1 spec/support/helpers/time_helpers.rb
appsignal-1.0.4 spec/support/helpers/time_helpers.rb
appsignal-1.1.0.beta.6 spec/support/helpers/time_helpers.rb
appsignal-1.0.3 spec/support/helpers/time_helpers.rb
appsignal-1.0.3.beta.2 spec/support/helpers/time_helpers.rb