diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2018-06-09 13:17:34 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2018-06-09 13:46:21 -0400 |
commit | dd7f8ca3cd18086b012715ba88fc2fb9f153c9ac (patch) | |
tree | 870b94ed1ab7e853abd08a208af3d5dd8ddaee7f /ci/travis.rb | |
parent | f4f9147b1e332bfd55fd5fa150af3aad47272a49 (diff) | |
download | rails-dd7f8ca3cd18086b012715ba88fc2fb9f153c9ac.tar.gz rails-dd7f8ca3cd18086b012715ba88fc2fb9f153c9ac.tar.bz2 rails-dd7f8ca3cd18086b012715ba88fc2fb9f153c9ac.zip |
Use same weekday correspondance as Date#wday.
DeepCover revealed that most of these `wday != 0 ? wday - 1 : 6`
were not entirely covered, i.e. the case of `wday == 0` was not tested:
https://deep-cover.github.io/rails-cover/activesupport/activesupport/lib/active_support/core_ext/date_and_time/calculations.rb.html#L351
There's actually no valid reason to consider Sunday a special case,
so this commit simply reajusts the values used for calculations.
Diffstat (limited to 'ci/travis.rb')
0 files changed, 0 insertions, 0 deletions