From 9e23835cb8f6b9284d635e52f7e374563ea51042 Mon Sep 17 00:00:00 2001 From: Raimonds Simanovskis Date: Wed, 2 Feb 2011 17:45:12 +0100 Subject: fix for test_read_attributes_before_type_cast_on_datetime - Oracle adapter also returns Time value --- activerecord/test/cases/attribute_methods_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'activerecord/test/cases') 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 -- cgit v1.2.3