1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activestorage/test/service
Alberto Vena f971a3f85d
Raise a meaningful error if ActiveStorage::Current.host is blank
It's very hard to understand what happens with the following exception

  URI::InvalidURIError:
    bad URI(is not URI?): nil

that is raised when trying to generate a URL for Disk service without
setting the ActiveStorage::Current.host first.

This can happen when the ActiveStorage::SetCurrent is not included
in a controller, or when testing URL generation outside of the
controllers layer (eg. testing URL generation in a model).

Co-authored-by: elia <elia@schito.me>
Co-authored-by: filippo <dev@mailvore.com>
2021-05-10 17:27:17 +02:00
..
azure_storage_public_service_test.rb Ensure direct uploads to a public S3 service have a public ACL 2020-04-28 15:42:17 -04:00
azure_storage_service_test.rb Implement content disposition in direct upload 2019-09-05 16:40:13 -04:00
configurations.example.yml Remove path config option from Azure service 2018-03-12 17:39:58 +00:00
configurations.yml.enc Update ASt test services config 2018-03-12 19:00:54 -04:00
configurator_test.rb Improve ActiveStorage service adapter error handling 2018-08-06 18:17:49 -07:00
disk_public_service_test.rb Remove query params in DiskService 2019-12-06 16:52:30 -05:00
disk_service_test.rb Raise a meaningful error if ActiveStorage::Current.host is blank 2021-05-10 17:27:17 +02:00
gcs_public_service_test.rb Revert "Set a public ACL for files uploaded to a public GCS service" 2020-04-28 17:16:47 -04:00
gcs_service_test.rb Revert "Set a public ACL for files uploaded to a public GCS service" 2020-04-28 17:16:47 -04:00
mirror_service_test.rb Make Active Storage services aware of configuration names 2019-10-03 13:08:30 -04:00
s3_public_service_test.rb Ensure direct uploads to a public S3 service have a public ACL 2020-04-28 15:42:17 -04:00
s3_service_test.rb Fix S3 multipart uploads when threshold is larger than file 2020-12-11 16:26:40 -05:00
shared_service_tests.rb Use image/jpeg instead of non-standard image/jpg 2021-03-05 13:14:11 -05:00