Change URLs to use the new domain

This commit is contained in:
Javi Martín
2023-07-07 15:01:41 +02:00
parent 629756dd15
commit 054aef3854
20 changed files with 37 additions and 37 deletions

View File

@@ -201,16 +201,16 @@ describe Setting do
end
describe ".default_mailer_from_address" do
before { allow(Tenant).to receive(:default_host).and_return("consulproject.org") }
before { allow(Tenant).to receive(:default_host).and_return("consuldemocracy.org") }
it "uses the default host for the default tenant" do
expect(Setting.default_mailer_from_address).to eq "noreply@consulproject.org"
expect(Setting.default_mailer_from_address).to eq "noreply@consuldemocracy.org"
end
it "uses the tenant host for other tenants" do
allow(Tenant).to receive(:current_schema).and_return("new")
expect(Setting.default_mailer_from_address).to eq "noreply@new.consulproject.org"
expect(Setting.default_mailer_from_address).to eq "noreply@new.consuldemocracy.org"
end
context "empty default host" do