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:
Jarek Radosz
2020-03-20 16:18:34 +01:00
committed by GitHub
parent 1859e6b7ca
commit 20f3be1e9c
4 changed files with 18 additions and 33 deletions

View File

@ -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