Testing CheckPending middleware
This commit is contained in:
parent
2d31df49d5
commit
2c86fa211b
@ -69,6 +69,14 @@ def app
|
|||||||
assert_equal "Rack::Cache", middleware.first
|
assert_equal "Rack::Cache", middleware.first
|
||||||
end
|
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
|
test "ActionDispatch::SSL is present when force_ssl is set" do
|
||||||
add_to_config "config.force_ssl = true"
|
add_to_config "config.force_ssl = true"
|
||||||
boot!
|
boot!
|
||||||
|
Loading…
Reference in New Issue
Block a user