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.rc.8 spec/support/helpers/time_helpers.rb
appsignal-0.12.rc.7 spec/support/helpers/time_helpers.rb
appsignal-0.12.rc.6 spec/support/helpers/time_helpers.rb
appsignal-0.12.rc.5 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.54 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.53 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.52 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.51 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.50 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.49 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.48 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.47 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.46 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.45 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.44 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.43 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.42 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.41 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.40 spec/support/helpers/time_helpers.rb
appsignal-0.12.beta.39 spec/support/helpers/time_helpers.rb