aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2008-06-02 22:02:43 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2008-06-02 22:02:43 -0500
commit64fea9c45c515496bb60df4a1e141f44cac4d158 (patch)
tree0da66f85c390b552c6c46a83bf27b76e20ba5e51 /activesupport/test/core_ext
parente7a305f08d8f72f81449e1d8934fba31f038ad88 (diff)
downloadrails-64fea9c45c515496bb60df4a1e141f44cac4d158.tar.gz
rails-64fea9c45c515496bb60df4a1e141f44cac4d158.tar.bz2
rails-64fea9c45c515496bb60df4a1e141f44cac4d158.zip
Fixed Date#end_of_quarter to not blow up on May 31st [#289 state:resolved] (Danger)
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/date_ext_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/date_ext_test.rb b/activesupport/test/core_ext/date_ext_test.rb
index 5925ae3a61..e1d2f0e7f2 100644
--- a/activesupport/test/core_ext/date_ext_test.rb
+++ b/activesupport/test/core_ext/date_ext_test.rb
@@ -76,6 +76,7 @@ class DateExtCalculationsTest < Test::Unit::TestCase
assert_equal Date.new(2008,3,31), Date.new(2008,3,31).end_of_quarter
assert_equal Date.new(2008,12,31), Date.new(2008,10,8).end_of_quarter
assert_equal Date.new(2008,6,30), Date.new(2008,4,14).end_of_quarter
+ assert_equal Date.new(2008,6,30), Date.new(2008,5,31).end_of_quarter
assert_equal Date.new(2008,9,30), Date.new(2008,8,21).end_of_quarter
end