diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-05-06 11:39:32 -0500 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-07-02 15:09:34 -0700 |
commit | 919e7053622422d4a653f43b57da5a4179d5bbb2 (patch) | |
tree | c210813493a325f8e66c2b42fdea7f4e70175d37 /activesupport/test/ordered_options_test.rb | |
parent | 173bf3506d99c0767a41d30fbe4d306201369194 (diff) | |
download | rails-919e7053622422d4a653f43b57da5a4179d5bbb2.tar.gz rails-919e7053622422d4a653f43b57da5a4179d5bbb2.tar.bz2 rails-919e7053622422d4a653f43b57da5a4179d5bbb2.zip |
`travel/travel_to` travel time helpers, now raise on nested calls,
as this can lead to confusing time stubbing.
Instead of:
travel_to 2.days.from_now do
# 2 days from today
travel_to 3.days.from_now do
# 5 days from today
end
end
preferred way to achieve above is:
travel_to 2.days.from_now
# 2 days from today
travel_back
travel_to 5.days.from_now
# 5 days from today
Closes #24690
Fixes #24689
Diffstat (limited to 'activesupport/test/ordered_options_test.rb')
0 files changed, 0 insertions, 0 deletions