@@ -164,9 +164,9 @@ def test_download_portfolio
164164
165165 get "/api/submission/project/#{ project . id } /portfolio" , data_to_put
166166 assert_equal 200 , last_response . status
167- assert last_response . header [ 'Content-Disposition' ] . starts_with? ( 'attachment; filename=' )
168- assert last_response . header [ 'Access-Control-Expose-Headers' ] == 'Content-Disposition'
169- assert last_response . header [ 'Content-Type' ] == 'application/pdf'
167+ assert last_response . headers [ 'Content-Disposition' ] . starts_with? ( 'attachment; filename=' )
168+ assert last_response . headers [ 'Access-Control-Expose-Headers' ] == 'Content-Disposition'
169+ assert last_response . headers [ 'Content-Type' ] == 'application/pdf'
170170 assert 10_485_760 , last_response . length
171171
172172 `fallocate -l 11M #{ project . portfolio_path } `
@@ -184,9 +184,9 @@ def test_download_portfolio
184184 get "/api/submission/project/#{ project . id } /portfolio" , data_to_put
185185 assert 500 , last_response . length
186186 assert_equal 206 , last_response . status
187- assert_nil last_response . header [ 'Content-Disposition' ]
188- assert_nil last_response . header [ 'Access-Control-Expose-Headers' ]
189- assert last_response . header [ 'Content-Type' ] == 'application/pdf'
187+ assert_nil last_response . headers [ 'Content-Disposition' ]
188+ assert_nil last_response . headers [ 'Access-Control-Expose-Headers' ]
189+ assert last_response . headers [ 'Content-Type' ] == 'application/pdf'
190190
191191 unit . destroy!
192192 ensure
0 commit comments