Skip to content

Commit ac721c8

Browse files
committed
Fix "warning: ambiguous first argument; put parentheses or a space even after `/' operator"
1 parent 74c9f64 commit ac721c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

activestorage/test/service/gcs_service_test.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ActiveStorage::Service::GCSServiceTest < ActiveSupport::TestCase
4141
url = @service.url(key, expires_in: 2.minutes, disposition: :inline, content_type: "text/html", filename: ActiveStorage::Filename.new("test.html"))
4242
response = Net::HTTP.get_response(URI(url))
4343
assert_equal "text/plain", response.content_type
44-
assert_match /attachment;.*test.txt/, response["Content-Disposition"]
44+
assert_match(/attachment;.*test.txt/, response["Content-Disposition"])
4545
ensure
4646
@service.delete key
4747
end
@@ -57,7 +57,7 @@ class ActiveStorage::Service::GCSServiceTest < ActiveSupport::TestCase
5757
url = @service.url(key, expires_in: 2.minutes, disposition: :inline, content_type: "text/html", filename: ActiveStorage::Filename.new("test.html"))
5858
response = Net::HTTP.get_response(URI(url))
5959
assert_equal "text/plain", response.content_type
60-
assert_match /inline;.*test.html/, response["Content-Disposition"]
60+
assert_match(/inline;.*test.html/, response["Content-Disposition"])
6161
ensure
6262
@service.delete key
6363
end
@@ -74,7 +74,7 @@ class ActiveStorage::Service::GCSServiceTest < ActiveSupport::TestCase
7474

7575
response = Net::HTTP.get_response(URI(url))
7676
assert_equal "text/plain", response.content_type
77-
assert_match /inline;.*test.txt/, response["Content-Disposition"]
77+
assert_match(/inline;.*test.txt/, response["Content-Disposition"])
7878
ensure
7979
@service.delete key
8080
end

0 commit comments

Comments
 (0)