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:
parent
f82b1e756a
commit
8f171b4d69
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue