Permalink
Browse files

Merge pull request #1368 from amatsuda/disable_im_by_default_on_test

Disable IdentityMap by default for ActiveRecord testing
  • Loading branch information...
2 parents c122c7b + 9fb51e7 commit b7baf1211f83f7dd008f156f1f5cfc62b52bf458 @tenderlove tenderlove 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 b7baf12

Please sign in to comment.