diff options
author | Raimonds Simanovskis <raimonds.simanovskis@gmail.com> | 2011-02-02 17:45:12 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-02-02 09:06:42 -0800 |
commit | 9e23835cb8f6b9284d635e52f7e374563ea51042 (patch) | |
tree | dcea346a2cc4282c3f148e2627a67b3a70708167 /activerecord/test/cases | |
parent | 9a0f43d3c1dd35fde074af6cc2825ae1872aabef (diff) | |
download | rails-9e23835cb8f6b9284d635e52f7e374563ea51042.tar.gz rails-9e23835cb8f6b9284d635e52f7e374563ea51042.tar.bz2 rails-9e23835cb8f6b9284d635e52f7e374563ea51042.zip |
fix for test_read_attributes_before_type_cast_on_datetime - Oracle adapter also returns Time value
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 06adb33ffc..7e3e204626 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -118,8 +118,8 @@ class AttributeMethodsTest < ActiveRecord::TestCase def test_read_attributes_before_type_cast_on_datetime developer = Developer.find(:first) - if current_adapter?(:Mysql2Adapter) - # Mysql2 keeps the value in Time instance + if current_adapter?(:Mysql2Adapter, :OracleAdapter) + # Mysql2 and Oracle adapters keep the value in Time instance assert_equal developer.created_at.to_s(:db), developer.attributes_before_type_cast["created_at"].to_s(:db) else assert_equal developer.created_at.to_s(:db), developer.attributes_before_type_cast["created_at"].to_s |