Permalink
Browse files

fix for test_read_attributes_before_type_cast_on_datetime - Oracle ad…

…apter also returns Time value
  • Loading branch information...
1 parent effb582 commit 8a73ebbcd642586f295b06e17ce2b4aa8db04550 @rsim rsim committed with tenderlove Feb 2, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/attribute_methods_test.rb
@@ -118,8 +118,8 @@ def test_read_attributes_before_type_cast_on_boolean
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

0 comments on commit 8a73ebb

Please sign in to comment.