diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-30 04:19:00 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-30 04:19:00 -0800 |
commit | db6f69fd2a35dde23ab8a9b8fad6071043ac8954 (patch) | |
tree | c36d39f66c220c8041ddd72efff3264275adf4b5 /guides/source | |
parent | 7f5466d58299db35a3d320e0b526001ae3be11a7 (diff) | |
parent | fa1f20e6549f962112948f5b3c27d09ab5e5faaf (diff) | |
download | rails-db6f69fd2a35dde23ab8a9b8fad6071043ac8954.tar.gz rails-db6f69fd2a35dde23ab8a9b8fad6071043ac8954.tar.bz2 rails-db6f69fd2a35dde23ab8a9b8fad6071043ac8954.zip |
Merge pull request #13884 from rafaelfranca/rm-travel-back
Add `travel_back` to remove stubs from `travel` and `travel_to` and remove auto-rollback after each test case
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/4_1_release_notes.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/4_1_release_notes.md b/guides/source/4_1_release_notes.md index 7399bfb5de..4e75bf400c 100644 --- a/guides/source/4_1_release_notes.md +++ b/guides/source/4_1_release_notes.md @@ -607,6 +607,10 @@ 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 returns + the current time to the original state, by removing the stubs added by `travel` + and `travel_to`. ([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)) |