Slient the warning for ActiveStorage::Current.host logged in test cases

This commit is contained in:
Abhay Nikam 2021-08-10 21:58:01 +05:30
parent 5e8a26d705
commit c89f152d8d
1 changed files with 1 additions and 1 deletions

View File

@ -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)