Skip to content

Commit 55cb5c2

Browse files
authored
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.
1 parent 813fc9e commit 55cb5c2

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ And testing gems like:
8080
* [RSpec Mocks](https://github.com/rspec/rspec-mocks) for stubbing and spying
8181
* [Shoulda Matchers](https://github.com/thoughtbot/shoulda-matchers) for common
8282
RSpec matchers
83-
* [Timecop](https://github.com/travisjeffery/timecop) for testing time
8483

8584
## Other goodies
8685

templates/Gemfile.erb

-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ end
4242
group :test do
4343
gem "formulaic"
4444
gem "launchy"
45-
gem "timecop"
4645
gem "webmock"
4746
end
4847

0 commit comments

Comments
 (0)