diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-06-08 12:12:29 -0700 |
---|---|---|
committer | Guillermo Iguaran <guilleiguaran@gmail.com> | 2013-06-08 12:12:29 -0700 |
commit | 9f7ac5a0ff2e3b73071e40547cd27c03de8d0575 (patch) | |
tree | 823e18dee01cf1c4557567dc8f5d75686f0ed1c6 | |
parent | b7f9de27f0558d6144f982cae83f32ca85a07f7e (diff) | |
parent | 2c86fa211b1f546b04c8890e36f502e7dcfa8f77 (diff) | |
download | rails-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.rb | 8 |
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! |