aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-06-08 12:12:29 -0700
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-06-08 12:12:29 -0700
commit9f7ac5a0ff2e3b73071e40547cd27c03de8d0575 (patch)
tree823e18dee01cf1c4557567dc8f5d75686f0ed1c6
parentb7f9de27f0558d6144f982cae83f32ca85a07f7e (diff)
parent2c86fa211b1f546b04c8890e36f502e7dcfa8f77 (diff)
downloadrails-9f7ac5a0ff2e3b73071e40547cd27c03de8d0575.tar.gz
rails-9f7ac5a0ff2e3b73071e40547cd27c03de8d0575.tar.bz2
rails-9f7ac5a0ff2e3b73071e40547cd27c03de8d0575.zip
Merge pull request #10893 from arunagw/test_for_checkpending_middleware
Testing CheckPending middleware
-rw-r--r--railties/test/application/middleware_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb
index d8076c7151..833114a34c 100644
--- a/railties/test/application/middleware_test.rb
+++ b/railties/test/application/middleware_test.rb
@@ -69,6 +69,14 @@ module ApplicationTests
assert_equal "Rack::Cache", middleware.first
end
+ test "ActiveRecord::Migration::CheckPending is present when active_record.migration_error is set to :page_load" do
+ add_to_config "config.active_record.migration_error = :page_load"
+
+ boot!
+
+ assert middleware.include?("ActiveRecord::Migration::CheckPending")
+ end
+
test "ActionDispatch::SSL is present when force_ssl is set" do
add_to_config "config.force_ssl = true"
boot!