time_helper.rb 208 B

123456789
  1. RSpec.configure do |config|
  2. # make usage of time travel helpers possible
  3. config.include ActiveSupport::Testing::TimeHelpers
  4. # avoid stuck time issues
  5. config.after(:each) do
  6. travel_back
  7. end
  8. end