Skip to content

Commit

Permalink
Disable IdentityMap by default for ActiveRecord testing
Browse files Browse the repository at this point in the history
because enabling IM by default will possibly hide some bugs on 3.1 default behavior
  • Loading branch information
amatsuda committed May 28, 2011
1 parent db05478 commit 37304e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions activerecord/test/cases/helper.rb
Expand Up @@ -26,8 +26,8 @@
# Quote "type" if it's a reserved word for the current connection. # Quote "type" if it's a reserved word for the current connection.
QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type') QUOTED_TYPE = ActiveRecord::Base.connection.quote_column_name('type')


# Enable Identity Map for testing # Enable Identity Map only when ENV['IM'] is set to "true"
ActiveRecord::IdentityMap.enabled = (ENV['IM'] == "false" ? false : true) ActiveRecord::IdentityMap.enabled = (ENV['IM'] == "true")


def current_adapter?(*types) def current_adapter?(*types)
types.any? do |type| types.any? do |type|
Expand Down

0 comments on commit 37304e3

Please sign in to comment.