From 2c86fa211b1f546b04c8890e36f502e7dcfa8f77 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Sat, 8 Jun 2013 21:10:15 +0200 Subject: Testing CheckPending middleware --- railties/test/application/middleware_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'railties/test/application') 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! -- cgit v1.2.3