mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Slient the warning for ActiveStorage::Current.host logged in test cases
This commit is contained in:
parent
5e8a26d705
commit
c89f152d8d
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue