Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Disable IdentityMap by default for ActiveRecord testing

because enabling IM by default will possibly hide some bugs on 3.1 default behavior
  • Loading branch information...
commit 9fb51e76fd4f533748a4711c093f2dc7812a62a8 1 parent c122c7b
Akira Matsuda amatsuda authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/helper.rb
4 activerecord/test/cases/helper.rb
View
@@ -26,8 +26,8 @@
# Quote "type" if it's a reserved word for the current connection.
QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type')
-# Enable Identity Map for testing
-ActiveRecord::IdentityMap.enabled = (ENV['IM'] == "false" ? false : true)
+# Enable Identity Map only when ENV['IM'] is set to "true"
+ActiveRecord::IdentityMap.enabled = (ENV['IM'] == "true")
def current_adapter?(*types)
types.any? do |type|
Please sign in to comment.
Something went wrong with that request. Please try again.