diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-29 22:24:48 -0200 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-30 10:17:47 -0200 |
commit | 6b16c2788186d45c70bd1d9fc476407e3e265439 (patch) | |
tree | db7b781e5e1579ce703feb75f5f42abd08fce344 /guides | |
parent | 7f5466d58299db35a3d320e0b526001ae3be11a7 (diff) | |
download | rails-6b16c2788186d45c70bd1d9fc476407e3e265439.tar.gz rails-6b16c2788186d45c70bd1d9fc476407e3e265439.tar.bz2 rails-6b16c2788186d45c70bd1d9fc476407e3e265439.zip |
Add `travel_back` to remove stubs from `travel` and `travel_to`
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/4_1_release_notes.md | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/4_1_release_notes.md b/guides/source/4_1_release_notes.md index 7399bfb5de..3668ffe44c 100644 --- a/guides/source/4_1_release_notes.md +++ b/guides/source/4_1_release_notes.md @@ -607,6 +607,9 @@ for detailed changes. `Time.now` and `Date.today`. ([Pull Request](https://github.com/rails/rails/pull/12824)) +* Added `ActiveSupport::Testing::TimeHelpers#travel_back`. This method return + the current time to the original state. ([Pull Request](https://github.com/rails/rails/pull/13884)) + * Added `Numeric#in_milliseconds`, like `1.hour.in_milliseconds`, so we can feed them to JavaScript functions like `getTime()`. ([Commit](https://github.com/rails/rails/commit/423249504a2b468d7a273cbe6accf4f21cb0e643)) |