Make the application multi-tenant

This commit is contained in:
Mike Dalessio
2025-03-04 08:45:41 -05:00
parent b90cc9bd06
commit d9ece38753
8 changed files with 2024 additions and 9 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class UploadsControllerTest < ActionDispatch::IntegrationTest
end
assert_response :success
assert_equal ActiveStorage::Attachment.last.slug_url(host: "www.example.com", port: nil), response.parsed_body["fileUrl"]
assert_equal ActiveStorage::Attachment.last.slug_url(host: "#{ApplicationRecord.current_tenant}.example.com", port: nil), response.parsed_body["fileUrl"]
assert_equal "image/jpeg", response.parsed_body["mimetype"]
assert_equal "moon.jpg", response.parsed_body["fileName"]
end