1
0
Fork 0
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:
Xavier Noria 2010-06-07 07:27:51 +02:00
parent d96efe6368
commit 8c7730db02

View file

@ -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