Permalink
Browse files

Testing CheckPending middleware

  • Loading branch information...
1 parent 2d31df4 commit 2c86fa211b1f546b04c8890e36f502e7dcfa8f77 @arunagw arunagw committed Jun 8, 2013
Showing with 8 additions and 0 deletions.
  1. +8 −0 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!

0 comments on commit 2c86fa2

Please sign in to comment.