Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix for test_read_attributes_before_type_cast_on_datetime - Oracle ad…

…apter also returns Time value
  • Loading branch information...
commit 8a73ebbcd642586f295b06e17ce2b4aa8db04550 1 parent effb582
@rsim rsim authored tenderlove committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/attribute_methods_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.