aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/application
diff options
context:
space:
mode:
authorMatthew Draper <matthew@trebex.net>2014-09-30 01:46:07 +0930
committerMatthew Draper <matthew@trebex.net>2015-07-09 03:31:30 +0930
commit383fed5f232630c198847ec573821ede4cf267a9 (patch)
treee55cca58cf30b7dd03ca5506b9e99ab103677673 /railties/test/application
parentc37d47e30897762145835e66ae752cce924af01d (diff)
downloadrails-383fed5f232630c198847ec573821ede4cf267a9.tar.gz
rails-383fed5f232630c198847ec573821ede4cf267a9.tar.bz2
rails-383fed5f232630c198847ec573821ede4cf267a9.zip
Rely on the load interlock for non-caching reloads, too
Diffstat (limited to 'railties/test/application')
-rw-r--r--railties/test/application/middleware_test.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb
index 0ea2c57c55..d298e8d632 100644
--- a/railties/test/application/middleware_test.rb
+++ b/railties/test/application/middleware_test.rb
@@ -26,7 +26,7 @@ module ApplicationTests
assert_equal [
"Rack::Sendfile",
"ActionDispatch::Static",
- "Rack::Lock",
+ "ActionDispatch::LoadInterlock",
"ActiveSupport::Cache::Strategy::LocalCache",
"Rack::Runtime",
"Rack::MethodOverride",
@@ -58,7 +58,7 @@ module ApplicationTests
assert_equal [
"Rack::Sendfile",
"ActionDispatch::Static",
- "Rack::Lock",
+ "ActionDispatch::LoadInterlock",
"ActiveSupport::Cache::Strategy::LocalCache",
"Rack::Runtime",
"ActionDispatch::RequestId",
@@ -128,11 +128,11 @@ module ApplicationTests
assert_includes middleware, "ActionDispatch::LoadInterlock"
end
- test "includes lock if cache_classes is off" do
+ test "includes interlock if cache_classes is off" do
add_to_config "config.cache_classes = false"
boot!
- assert_includes middleware, "Rack::Lock"
- assert_not_includes middleware, "ActionDispatch::LoadInterlock"
+ assert_not_includes middleware, "Rack::Lock"
+ assert_includes middleware, "ActionDispatch::LoadInterlock"
end
test "does not include lock if cache_classes is set and so is eager_load" do
@@ -143,8 +143,8 @@ module ApplicationTests
assert_not_includes middleware, "ActionDispatch::LoadInterlock"
end
- test "does not include lock if allow_concurrency is set" do
- add_to_config "config.allow_concurrency = true"
+ test "does not include lock if allow_concurrency is set to :unsafe" do
+ add_to_config "config.allow_concurrency = :unsafe"
boot!
assert_not_includes middleware, "Rack::Lock"
assert_not_includes middleware, "ActionDispatch::LoadInterlock"