mirror of
https://github.com/discourse/discourse.git
synced 2025-03-01 15:17:47 +08:00

This commit adds the RailsMultisite middleware in test mode when Rails.configuration.multisite is true. This allows for much more realistic integration testing. The `multisite_spec.rb` file is rewritten to avoid needing to simulate a middleware stack.