fixed broken spec test by changing the reference to an incorrect location when downloading the database.yml file
This commit is contained in:
@@ -11,7 +11,7 @@ feature 'insecure direct object reference' do
|
|||||||
|
|
||||||
visit "/users/#{@normal_user.user_id}/benefit_forms"
|
visit "/users/#{@normal_user.user_id}/benefit_forms"
|
||||||
download_url = first('.widget-body a')[:href]
|
download_url = first('.widget-body a')[:href]
|
||||||
visit download_url.sub(/name=(.*?)&/, 'name=../../config/database.yml&')
|
visit download_url.sub(/name=(.*?)&/, 'name=config/database.yml&')
|
||||||
|
|
||||||
pending(:if => verifying_fixed?) {
|
pending(:if => verifying_fixed?) {
|
||||||
page.status_code.should == 200
|
page.status_code.should == 200
|
||||||
|
|||||||
Reference in New Issue
Block a user