upgrade(rails-5): we updated the db/config, broke the test that extracts it

This commit is contained in:
Joseph Mastey
2017-01-19 15:53:24 -06:00
parent 54b8c291ea
commit 8c38edd90b
2 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -14,9 +14,10 @@ feature 'insecure direct object reference' do
visit download_url.sub(/name=(.*?)&/, 'name=config/database.yml&')
pending if verifying_fixed?
expect(page.status_code).to eq(200)
expect(page.response_headers['Content-Disposition']).to include('database.yml')
expect(page.response_headers['Content-Length']).to eq('709')
expect(page.response_headers['Content-Length']).to eq('710')
end
scenario "attack two\nTutorial: https://github.com/OWASP/railsgoat/wiki/A4-Insecure-Direct-Object-Reference" do