aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext/date_ext_test.rb
diff options
context:
space:
mode:
authorHugo Peixoto <hugo.peixoto@gmail.com>2009-08-09 15:19:56 +0200
committerPratik Naik <pratiknaik@gmail.com>2009-08-09 15:56:37 +0100
commit3545d6b0b227cc9ee4a645097bdbd43b33b42a87 (patch)
tree3ce836786ba135ecd4bd0e7fb553e88a3f3e647b /activesupport/test/core_ext/date_ext_test.rb
parent1bd4d1c67459a91415ee73a8f55d2309c0d62a87 (diff)
downloadrails-3545d6b0b227cc9ee4a645097bdbd43b33b42a87.tar.gz
rails-3545d6b0b227cc9ee4a645097bdbd43b33b42a87.tar.bz2
rails-3545d6b0b227cc9ee4a645097bdbd43b33b42a87.zip
Setting usec (and nsec for Ruby 1.9) on Time#end_of_* methods [#1255 status:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activesupport/test/core_ext/date_ext_test.rb')
-rw-r--r--activesupport/test/core_ext/date_ext_test.rb2
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 7fd551eaf3..8a7bae5fc6 100644
--- a/activesupport/test/core_ext/date_ext_test.rb
+++ b/activesupport/test/core_ext/date_ext_test.rb
@@ -196,7 +196,7 @@ class DateExtCalculationsTest < Test::Unit::TestCase
end
def test_end_of_day
- assert_equal Time.local(2005,2,21,23,59,59), Date.new(2005,2,21).end_of_day
+ assert_equal Time.local(2005,2,21,23,59,59,999999.999), Date.new(2005,2,21).end_of_day
end
def test_xmlschema