mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
DEV: Use the type: :multisite
spec setting (#9245)
Fixes recent spec flakiness. Also includes: DEV: Prevent accidental exit from specs
This commit is contained in:
@ -401,10 +401,7 @@ describe UploadsController do
|
||||
expect(response.code).to eq("403")
|
||||
end
|
||||
|
||||
context "when running on a multisite connection" do
|
||||
before do
|
||||
Rails.configuration.multisite = true
|
||||
end
|
||||
context "when running on a multisite connection", type: :multisite do
|
||||
it "redirects to the signed_url_for_path with the multisite DB name in the url" do
|
||||
freeze_time
|
||||
get upload.short_path
|
||||
|
Reference in New Issue
Block a user