aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorJohn Firebaugh <john_firebaugh@us.ibm.com>2010-11-23 18:04:05 -0800
committerJosé Valim <jose.valim@gmail.com>2010-12-20 12:43:02 +0100
commit0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668 (patch)
treebef68868ab12882293e04a102f9e507efae2c7f6 /railties/test/application
parentd4f995301bace57070e37ac97b9b18a70aed2230 (diff)
downloadrails-0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668.tar.gz
rails-0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668.tar.bz2
rails-0f7c970e4f1cf0f3bcc01c22a6a3038cb3e34668.zip
Introduce ActionDispatch::Reloader
Based on the implementation on the 2-3-stable branch, patches by Hongli Lai <hongli@phusion.nl>, and helpful suggestions from José Valim. Hongli Lai's patches included locking around the request cycle; this is now handled by Rack::Lock (https://github.com/rack/rack/issues/issue/87/). [#2873] Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/middleware_test.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb
index 173ac40b12..a2217888e4 100644
--- a/railties/test/application/middleware_test.rb
+++ b/railties/test/application/middleware_test.rb
@@ -27,6 +27,7 @@ module ApplicationTests
"ActionDispatch::ShowExceptions",
"ActionDispatch::RemoteIp",
"Rack::Sendfile",
+ "ActionDispatch::Reloader",
"ActionDispatch::Callbacks",
"ActiveRecord::ConnectionAdapters::ConnectionManagement",
"ActiveRecord::QueryCache",
@@ -81,6 +82,12 @@ module ApplicationTests
assert !middleware.include?("ActionDispatch::ShowExceptions")
end
+ test "removes ActionDispatch::Reloader if cache_classes is true" do
+ add_to_config "config.cache_classes = true"
+ boot!
+ assert !middleware.include?("ActionDispatch::Reloader")
+ end
+
test "use middleware" do
use_frameworks []
add_to_config "config.middleware.use Rack::Config"