Permalink
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 db05478 commit 37304e3be9f42a6459f0c579722d5b339eb8b1a7 @amatsuda amatsuda committed May 28, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 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 37304e3

Please sign in to comment.