File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ def upload_droplet
6464 get "/internal/v2/droplets/#{ process . guid } /#{ process . droplet_checksum } /download"
6565
6666 expect ( last_response ) . to be_redirect
67- expect ( last_response . header [ 'Location' ] ) . to eq ( expected_redirect )
67+ expect ( last_response . headers [ 'Location' ] ) . to eq ( expected_redirect )
6868 end
6969 end
7070
@@ -250,7 +250,7 @@ def upload_droplet(target_droplet=droplet)
250250 get "/internal/v4/droplets/#{ process . guid } /#{ process . droplet_checksum } /download"
251251
252252 expect ( last_response ) . to be_redirect
253- expect ( last_response . header [ 'Location' ] ) . to eq ( 'http://example.com/somewhere/else' )
253+ expect ( last_response . headers [ 'Location' ] ) . to eq ( 'http://example.com/somewhere/else' )
254254 end
255255
256256 context 'when using with a revision' do
@@ -271,7 +271,7 @@ def upload_droplet(target_droplet=droplet)
271271 get "/internal/v4/droplets/#{ process . guid } /#{ new_droplet . checksum } /download"
272272
273273 expect ( last_response ) . to be_redirect
274- expect ( last_response . header [ 'Location' ] ) . to eq ( 'http://example.com/correct/droplet' )
274+ expect ( last_response . headers [ 'Location' ] ) . to eq ( 'http://example.com/correct/droplet' )
275275 end
276276 end
277277 end
Original file line number Diff line number Diff line change @@ -1818,7 +1818,7 @@ def delete_app
18181818 it 'lets the user download the droplet' do
18191819 get "/v2/apps/#{ process . app . guid } /droplet/download" , Oj . dump ( { } )
18201820 expect ( last_response ) . to be_redirect
1821- expect ( last_response . header [ 'Location' ] ) . to eq ( 'http://example.com/somewhere/else' )
1821+ expect ( last_response . headers [ 'Location' ] ) . to eq ( 'http://example.com/somewhere/else' )
18221822 end
18231823
18241824 it 'returns an error for non-existent apps' do
Original file line number Diff line number Diff line change @@ -316,7 +316,7 @@ module VCAP::CloudController
316316 authorize ( staging_user , staging_password )
317317 get "/v2/buildpacks/#{ test_buildpack . guid } /download"
318318 expect ( last_response . status ) . to eq ( 302 )
319- expect ( last_response . header [ 'Location' ] ) . to match ( /cc-buildpacks/ )
319+ expect ( last_response . headers [ 'Location' ] ) . to match ( /cc-buildpacks/ )
320320 end
321321
322322 it 'returns 404 for missing bits' do
You can’t perform that action at this time.
0 commit comments