mirror of https://github.com/rails/rails
Slient the warning for ActiveStorage::Current.host logged in test cases
This commit is contained in:
parent
5e8a26d705
commit
c89f152d8d
|
@ -51,7 +51,7 @@ class ActiveStorage::Service::DiskServiceTest < ActiveSupport::TestCase
|
|||
|
||||
test "URL generation keeps working with ActiveStorage::Current.host set" do
|
||||
ActiveStorage::Current.url_options = nil
|
||||
ActiveStorage::Current.host = "https://example.com"
|
||||
assert_deprecated { ActiveStorage::Current.host = "https://example.com" }
|
||||
|
||||
original_url_options = Rails.application.routes.default_url_options.dup
|
||||
Rails.application.routes.default_url_options.merge!(protocol: "http", host: "test.example.com", port: 3001)
|
||||
|
|
Loading…
Reference in New Issue