Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed timecop gem in favor of travel_to #351

Merged
merged 1 commit into from
Sep 29, 2023
Merged

Commits on Sep 29, 2023

  1. Removed timecop in favor of travel_to

    With the release of `rails` 4.1, `Timecop.freeze` can be replaced with
    `travel_to`
    
    ```ruby
    Timecop.freeze 1.week.ago do
      # time sensitive code
    end
    
    travel_to 1.week.ago do
      # time sensitive code
    end
    ```
    
    Read more in the
    [TimeHelpers](https://github.com/rails/rails/blob/a6f55fe257512731d7f3f41976648d99e9ec95be/activesupport/lib/active_support/testing/time_helpers.rb#L43)
    module.
    seanpdoyle committed Sep 29, 2023
    Configuration menu
    Copy the full SHA
    830b9ec View commit details
    Browse the repository at this point in the history