aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application/initializers
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-08-20 18:55:02 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-08-20 18:55:02 -0700
commitc211d904ba358d3d1ae85d56fa3a805ea505c23a (patch)
treeccdf273abc0c7cc63327efc2535eb3fc79784185 /railties/test/application/initializers
parent3cd9627bd827265229781013bfa1cbbfff2a0a6c (diff)
downloadrails-c211d904ba358d3d1ae85d56fa3a805ea505c23a.tar.gz
rails-c211d904ba358d3d1ae85d56fa3a805ea505c23a.tar.bz2
rails-c211d904ba358d3d1ae85d56fa3a805ea505c23a.zip
Revert "Just add connection management middleware if running in a concurrent environment."
This reverts commit 6b29dc876fe185881d46731c3ae170478a3828fe.
Diffstat (limited to 'railties/test/application/initializers')
-rw-r--r--railties/test/application/initializers/frameworks_test.rb12
1 files changed, 1 insertions, 11 deletions
diff --git a/railties/test/application/initializers/frameworks_test.rb b/railties/test/application/initializers/frameworks_test.rb
index d8e916f45f..4ff10091b1 100644
--- a/railties/test/application/initializers/frameworks_test.rb
+++ b/railties/test/application/initializers/frameworks_test.rb
@@ -98,17 +98,7 @@ module ApplicationTests
require "#{app_path}/config/environment"
- expects = [ActiveRecord::QueryCache, ActiveRecord::SessionStore]
- middleware = Rails.application.config.middleware.map { |m| m.klass }
- assert_equal expects, middleware & expects
- end
-
- test "database middleware initializes when allow concurrency is true" do
- add_to_config "config.threadsafe!"
-
- require "#{app_path}/config/environment"
-
- expects = [ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache]
+ expects = [ActiveRecord::ConnectionAdapters::ConnectionManagement, ActiveRecord::QueryCache, ActiveRecord::SessionStore]
middleware = Rails.application.config.middleware.map { |m| m.klass }
assert_equal expects, middleware & expects
end