Permalink
Browse files

Do not use time zone in test_read_attributes_before_type_cast_on_date…

…time for Oracle database

As currently string_to_time method is not doing time zone conversion to database time zone
  • Loading branch information...
1 parent f82b1e7 commit 8f171b4d6915109068e5e1c1aa37038b8311f15a @rsim rsim committed with tenderlove Aug 22, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 activerecord/test/cases/attribute_methods_test.rb
@@ -120,9 +120,9 @@ def test_read_attributes_before_type_cast_on_datetime
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

0 comments on commit 8f171b4

Please sign in to comment.