Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Testing CheckPending middleware

  • Loading branch information...
commit 2c86fa211b1f546b04c8890e36f502e7dcfa8f77 1 parent 2d31df4
@arunagw arunagw authored
Showing with 8 additions and 0 deletions.
  1. +8 −0 railties/test/application/middleware_test.rb
View
8 railties/test/application/middleware_test.rb
@@ -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!
Please sign in to comment.
Something went wrong with that request. Please try again.