mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2d84a6bc74
It's common in test cases at my job to have code like this: let(:today) { customer_start_date + 2.weeks } let(:earlier_date) { today - 5.days } With this change, we can instead write let(:today) { 2.weeks.after(customer_start_date) } let(:earlier_date) { 5.days.before(today) } Closes #27721 |
||
---|---|---|
.. | ||
active_support | ||
active_support.rb |