diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-10 23:30:53 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-10 23:30:53 -0700 |
commit | 4a6855e183707704038905b4e27cf33808bc5292 (patch) | |
tree | 0bf26c6ff68bf4b2a53cf26ecac0e0dcaacc54c0 /railties/test/application | |
parent | a792ad6db946d0f4b6b75938b76a6389863fb23a (diff) | |
parent | 828f171536527c6f6ba9d1b78037008d99a4a5e1 (diff) | |
download | rails-4a6855e183707704038905b4e27cf33808bc5292.tar.gz rails-4a6855e183707704038905b4e27cf33808bc5292.tar.bz2 rails-4a6855e183707704038905b4e27cf33808bc5292.zip |
Merge pull request #507 from dlee/fix_identity_map_tests
Fix tests to reflect IdentityMap no longer default
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/initializers/frameworks_test.rb | 2 | ||||
-rw-r--r-- | railties/test/application/middleware_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb index 19311a7fa0..196d121c14 100644 --- a/railties/test/application/initializers/frameworks_test.rb +++ b/railties/test/application/initializers/frameworks_test.rb @@ -166,7 +166,7 @@ module ApplicationTests require "#{app_path}/config/environment" - expects = [ActiveRecord::IdentityMap::Middleware, ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActiveRecord::SessionStore] + expects = [ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActiveRecord::SessionStore] middleware = Rails.application.config.middleware.map { |m| m.klass } assert_equal expects, middleware & expects end diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index fd6dc46271..8bfde00af5 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -30,7 +30,6 @@ module ApplicationTests "Rack::Sendfile", "ActionDispatch::Reloader", "ActionDispatch::Callbacks", - "ActiveRecord::IdentityMap::Middleware", "ActiveRecord::ConnectionAdapters::ConnectionManagement", "ActiveRecord::QueryCache", "ActionDispatch::Cookies", @@ -121,6 +120,7 @@ module ApplicationTests end test "identity map is inserted" do + add_to_config "config.active_record.identity_map = true" boot! assert middleware.include?("ActiveRecord::IdentityMap::Middleware") end |