• N
    Add Duration#before and #after as aliases for #ago and #since · 2d84a6bc
    Nick Johnstone 提交于
    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
    2d84a6bc
可在Tags中查看这些版本中当前仓库的状态.
CHANGELOG.md 12.9 KB