aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2010-02-16 21:43:13 +0200
committerRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2010-06-04 22:44:03 +0300
commit5fcaf917612c61174f55bbd2301131ccdbec51fb (patch)
tree2705c71018e225ab15eba913fb496e25b9157f29 /activesupport/test/core_ext
parenta82e06709179791e6b0a3bca37113f144dcefbb8 (diff)
downloadrails-5fcaf917612c61174f55bbd2301131ccdbec51fb.tar.gz
rails-5fcaf917612c61174f55bbd2301131ccdbec51fb.tar.bz2
rails-5fcaf917612c61174f55bbd2301131ccdbec51fb.zip
fix conditions when DateTime#to_date and DateTime#xmlschema methods are defined
Diffstat (limited to 'activesupport/test/core_ext')
-rw-r--r--activesupport/test/core_ext/date_time_ext_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/date_time_ext_test.rb b/activesupport/test/core_ext/date_time_ext_test.rb
index eba8170cda..19d7935211 100644
--- a/activesupport/test/core_ext/date_time_ext_test.rb
+++ b/activesupport/test/core_ext/date_time_ext_test.rb
@@ -26,11 +26,11 @@ class DateTimeExtCalculationsTest < Test::Unit::TestCase
end
def test_to_date
- assert_equal Date.new(2005, 2, 21), DateTime.new(2005, 2, 21).to_date
+ assert_equal Date.new(2005, 2, 21), DateTime.new(2005, 2, 21, 14, 30, 0).to_date
end
def test_to_datetime
- assert_equal DateTime.new(2005, 2, 21), DateTime.new(2005, 2, 21).to_datetime
+ assert_equal DateTime.new(2005, 2, 21, 14, 30, 0), DateTime.new(2005, 2, 21, 14, 30, 0).to_datetime
end
def test_to_time