File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
activestorage/test/controllers Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -131,6 +131,12 @@ class ActiveStorage::Blobs::ProxyControllerTest < ActionDispatch::IntegrationTes
131
131
request = ActionController ::TestRequest . create ( { } )
132
132
assert_instance_of ActionController ::Live ::Response , ActiveStorage ::Blobs ::ProxyController . make_response! ( request )
133
133
end
134
+
135
+ test "sessions are disabled" do
136
+ get rails_storage_proxy_url ( create_file_blob ( filename : "racecar.jpg" ) )
137
+ assert request . session_options [ :skip ] ,
138
+ "Expected request.session_options[:skip] to be true"
139
+ end
134
140
end
135
141
136
142
class ActiveStorage ::Blobs ::ExpiringProxyControllerTest < ActionDispatch ::IntegrationTest
Original file line number Diff line number Diff line change @@ -64,6 +64,16 @@ class ActiveStorage::Representations::ProxyControllerWithVariantsTest < ActionDi
64
64
65
65
assert_response :not_found
66
66
end
67
+
68
+ test "sessions are disabled" do
69
+ get rails_blob_representation_proxy_url (
70
+ disposition : :attachment ,
71
+ filename : @blob . filename ,
72
+ signed_blob_id : @blob . signed_id ,
73
+ variation_key : ActiveStorage ::Variation . encode ( @transformations ) )
74
+ assert request . session_options [ :skip ] ,
75
+ "Expected request.session_options[:skip] to be true"
76
+ end
67
77
end
68
78
69
79
class ActiveStorage ::Representations ::ProxyControllerWithVariantsWithStrictLoadingTest < ActionDispatch ::IntegrationTest
You can’t perform that action at this time.
0 commit comments