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