aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/numeric_ext_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2005-06-24 20:42:16 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2005-06-24 20:42:16 +0000
commitbb6b14b04f9d3f1e8d8811588902eb7d61fb054e (patch)
treeef6be402564baf620daffb856033719b39a0b4c1 /activesupport/test/core_ext/numeric_ext_test.rb
parentc8e2cf3ed0c35205ff80bded5232924685f5904a (diff)
downloadrails-bb6b14b04f9d3f1e8d8811588902eb7d61fb054e.tar.gz
rails-bb6b14b04f9d3f1e8d8811588902eb7d61fb054e.tar.bz2
rails-bb6b14b04f9d3f1e8d8811588902eb7d61fb054e.zip
Increased accuracy of 1.year by accounting for leap years. The time extensions are not meant to be super-precise but this seems worth it since otherwise you lose a lot of days doing 40.years.ago. Closes #1488 [tuxie@dekadance.se]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1499 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport/test/core_ext/numeric_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/numeric_ext_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/test/core_ext/numeric_ext_test.rb b/activesupport/test/core_ext/numeric_ext_test.rb
index 0bcb8a2b51..770c82c872 100644
--- a/activesupport/test/core_ext/numeric_ext_test.rb
+++ b/activesupport/test/core_ext/numeric_ext_test.rb
@@ -9,7 +9,7 @@ class NumericExtTimeTest < Test::Unit::TestCase
10.minutes => 600,
1.hour + 15.minutes => 4500,
2.days + 4.hours + 30.minutes => 189000,
- 5.years + 1.month + 1.fortnight => 161481600
+ 5.years + 1.month + 1.fortnight => 161589600
}
end