Sha256: 1f9dd3526fc8ee7611b532b2d55e407c1066cbb33805888b3447a3b261040de1

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

require 'timecop'

RSpec.configure do |config|
  config.before(:each) do
    Timecop.freeze(Time.local(2013))
  end

  config.before(:each, capybara_feature: true) do
    # Do not freeze time in capybara tests to enable waiting for elements
    Timecop.travel(Time.local(2013))
  end

  config.before(:each, integration: true) do
    # Do not freeze time in integration tests
    Timecop.return
  end

  config.after(:each) do
    Timecop.return
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cert_watch-1.1.0 spec/support/config/timecop.rb
cert_watch-1.0.0 spec/support/config/timecop.rb