mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
oops, two cancelling errors made a previous test pass, fixing it
This commit is contained in:
parent
d96efe6368
commit
8c7730db02
1 changed files with 1 additions and 1 deletions
|
@ -204,7 +204,7 @@ class DateExtCalculationsTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_advance_does_first_months_and_then_days
|
||||
assert_equal Date.new(2010, 3, 28), Date.new(2010, 2, 28).advance(:months => 1, :day => 1)
|
||||
assert_equal Date.new(2010, 3, 29), Date.new(2010, 2, 28).advance(:months => 1, :days => 1)
|
||||
# If day was done first we would jump to 2010-04-01 instead.
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue