aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRaimonds Simanovskis <raimonds.simanovskis@gmail.com>2010-08-23 06:40:40 +0800
committerAaron Patterson <aaron.patterson@gmail.com>2010-08-22 16:35:55 -0700
commit8f171b4d6915109068e5e1c1aa37038b8311f15a (patch)
treebd660c94f1e4a74caf5f6ffd483a18269badcc73 /activerecord
parentf82b1e756a736e4a7f3903deede8b83682158518 (diff)
downloadrails-8f171b4d6915109068e5e1c1aa37038b8311f15a.tar.gz
rails-8f171b4d6915109068e5e1c1aa37038b8311f15a.tar.bz2
rails-8f171b4d6915109068e5e1c1aa37038b8311f15a.zip
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
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb6
1 files 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