Skip to content


Subversion checkout URL

You can clone with
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...
1 parent c122c7b commit 9fb51e76fd4f533748a4711c093f2dc7812a62a8 @amatsuda amatsuda committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/helper.rb
4 activerecord/test/cases/helper.rb
@@ -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|

0 comments on commit 9fb51e7

Please sign in to comment.
Something went wrong with that request. Please try again.