Skip to content

Commit c89f152

Browse files
committed
Slient the warning for ActiveStorage::Current.host logged in test cases
1 parent 5e8a26d commit c89f152

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activestorage/test/service/disk_service_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class ActiveStorage::Service::DiskServiceTest < ActiveSupport::TestCase
5151

5252
test "URL generation keeps working with ActiveStorage::Current.host set" do
5353
ActiveStorage::Current.url_options = nil
54-
ActiveStorage::Current.host = "https://example.com"
54+
assert_deprecated { ActiveStorage::Current.host = "https://example.com" }
5555

5656
original_url_options = Rails.application.routes.default_url_options.dup
5757
Rails.application.routes.default_url_options.merge!(protocol: "http", host: "test.example.com", port: 3001)

0 commit comments

Comments
 (0)