diff options
author | Xavier Noria <fxn@hashref.com> | 2010-06-07 07:27:51 +0200 |
---|---|---|
committer | Xavier Noria <fxn@hashref.com> | 2010-06-07 07:27:51 +0200 |
commit | 8c7730db02b8a26c318caf98e726ee6e9f39df24 (patch) | |
tree | cdbb77ea83f7d3f7bd099e3010dbae7d51200b20 /activesupport/test/core_ext | |
parent | d96efe63681cdf63e7c1a1448387a39af736bab9 (diff) | |
download | rails-8c7730db02b8a26c318caf98e726ee6e9f39df24.tar.gz rails-8c7730db02b8a26c318caf98e726ee6e9f39df24.tar.bz2 rails-8c7730db02b8a26c318caf98e726ee6e9f39df24.zip |
oops, two cancelling errors made a previous test pass, fixing it
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r-- | activesupport/test/core_ext/date_ext_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb index 55cd566738..3e003b3ed4 100644 --- a/activesupport/test/core_ext/date_ext_test.rb +++ b/activesupport/test/core_ext/date_ext_test.rb @@ -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 |