From 8f171b4d6915109068e5e1c1aa37038b8311f15a Mon Sep 17 00:00:00 2001 From: Raimonds Simanovskis Date: Mon, 23 Aug 2010 06:40:40 +0800 Subject: [PATCH] Do not use time zone in test_read_attributes_before_type_cast_on_datetime for Oracle database As currently string_to_time method is not doing time zone conversion to database time zone --- activerecord/test/cases/attribute_methods_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index a698f23fb6..9b3cc47c79 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -120,9 +120,9 @@ class AttributeMethodsTest < ActiveRecord::TestCase assert_equal developer.created_at_before_type_cast, "345643456" assert_equal developer.created_at, nil - developer.created_at = "2010-03-21T21:23:32+01:00" - assert_equal developer.created_at_before_type_cast, "2010-03-21T21:23:32+01:00" - assert_equal developer.created_at, Time.parse("2010-03-21T21:23:32+01:00") + developer.created_at = "2010-03-21 21:23:32" + assert_equal developer.created_at_before_type_cast, "2010-03-21 21:23:32" + assert_equal developer.created_at, Time.parse("2010-03-21 21:23:32") end end end