1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
Raimonds Simanovskis 2010-08-23 06:40:40 +08:00 committed by Aaron Patterson
parent f82b1e756a
commit 8f171b4d69

View file

@ -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