Testing CheckPending middleware

This commit is contained in:
Arun Agrawal 2013-06-08 21:10:15 +02:00
parent 2d31df49d5
commit 2c86fa211b

@ -69,6 +69,14 @@ def app
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!