From 55cb5c246fe53aea4cf53436c7c208b40ad13e85 Mon Sep 17 00:00:00 2001 From: Sean Doyle Date: Fri, 29 Sep 2023 13:00:54 -0400 Subject: [PATCH] Removed `timecop` in favor of `travel_to` (#351) 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. --- README.md | 1 - templates/Gemfile.erb | 1 - 2 files changed, 2 deletions(-) diff --git a/README.md b/README.md index 2e1723ae9..294501a8c 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,6 @@ And testing gems like: * [RSpec Mocks](https://github.com/rspec/rspec-mocks) for stubbing and spying * [Shoulda Matchers](https://github.com/thoughtbot/shoulda-matchers) for common RSpec matchers -* [Timecop](https://github.com/travisjeffery/timecop) for testing time ## Other goodies diff --git a/templates/Gemfile.erb b/templates/Gemfile.erb index 26575ed40..5e37df070 100644 --- a/templates/Gemfile.erb +++ b/templates/Gemfile.erb @@ -42,7 +42,6 @@ end group :test do gem "formulaic" gem "launchy" - gem "timecop" gem "webmock" end