diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-28 11:29:03 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2018-11-28 11:29:03 +0900 |
commit | ac721c855203ac7570545c0e85fe086f8e94d94a (patch) | |
tree | dba771a616f2cb7b06aa4f2f275997e48eec4afa /activestorage | |
parent | 74c9f649a41425ae00755eeb5369029be9497ade (diff) | |
download | rails-ac721c855203ac7570545c0e85fe086f8e94d94a.tar.gz rails-ac721c855203ac7570545c0e85fe086f8e94d94a.tar.bz2 rails-ac721c855203ac7570545c0e85fe086f8e94d94a.zip |
Fix "warning: ambiguous first argument; put parentheses or a space even after `/' operator"
Diffstat (limited to 'activestorage')
-rw-r--r-- | activestorage/test/service/gcs_service_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activestorage/test/service/gcs_service_test.rb b/activestorage/test/service/gcs_service_test.rb index 6d0695ba58..af27946357 100644 --- a/activestorage/test/service/gcs_service_test.rb +++ b/activestorage/test/service/gcs_service_test.rb @@ -41,7 +41,7 @@ if SERVICE_CONFIGURATIONS[:gcs] url = @service.url(key, expires_in: 2.minutes, disposition: :inline, content_type: "text/html", filename: ActiveStorage::Filename.new("test.html")) response = Net::HTTP.get_response(URI(url)) assert_equal "text/plain", response.content_type - assert_match /attachment;.*test.txt/, response["Content-Disposition"] + assert_match(/attachment;.*test.txt/, response["Content-Disposition"]) ensure @service.delete key end @@ -57,7 +57,7 @@ if SERVICE_CONFIGURATIONS[:gcs] url = @service.url(key, expires_in: 2.minutes, disposition: :inline, content_type: "text/html", filename: ActiveStorage::Filename.new("test.html")) response = Net::HTTP.get_response(URI(url)) assert_equal "text/plain", response.content_type - assert_match /inline;.*test.html/, response["Content-Disposition"] + assert_match(/inline;.*test.html/, response["Content-Disposition"]) ensure @service.delete key end @@ -74,7 +74,7 @@ if SERVICE_CONFIGURATIONS[:gcs] response = Net::HTTP.get_response(URI(url)) assert_equal "text/plain", response.content_type - assert_match /inline;.*test.txt/, response["Content-Disposition"] + assert_match(/inline;.*test.txt/, response["Content-Disposition"]) ensure @service.delete key end |