diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-06-17 21:35:07 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-06-17 21:35:07 +0900 |
commit | 38dbc8e2b87eb6b303180c45ccb153e72da87c44 (patch) | |
tree | 23af81dfe1d41058571eebbfa67adc173ce23aa3 /activestorage/test | |
parent | c0ce055b05ed76a6dbc711e4c816c8a95e2e686a (diff) | |
download | rails-38dbc8e2b87eb6b303180c45ccb153e72da87c44.tar.gz rails-38dbc8e2b87eb6b303180c45ccb153e72da87c44.tar.bz2 rails-38dbc8e2b87eb6b303180c45ccb153e72da87c44.zip |
Fix "warning: Net::HTTPResponse#header is obsolete"
Ref: https://github.com/ruby/ruby/blob/cc77a811298bd7ab1c422f7f999b93c858327da9/lib/net/http/response.rb#L138-L155
Diffstat (limited to 'activestorage/test')
-rw-r--r-- | activestorage/test/service/gcs_service_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activestorage/test/service/gcs_service_test.rb b/activestorage/test/service/gcs_service_test.rb index fc2d9d0fa7..2f212b5811 100644 --- a/activestorage/test/service/gcs_service_test.rb +++ b/activestorage/test/service/gcs_service_test.rb @@ -44,7 +44,7 @@ if SERVICE_CONFIGURATIONS[:gcs] url = @service.url(key, expires_in: 2.minutes, disposition: :inline, filename: ActiveStorage::Filename.new("test.txt"), content_type: "text/plain") response = Net::HTTP.get_response(URI(url)) - assert_equal "text/plain", response.header["Content-Type"] + assert_equal "text/plain", response.content_type ensure @service.delete key end |