fixes a bug introduced during the transition from info_disclosure to A6

This commit is contained in:
cktricky
2013-11-14 11:06:27 -05:00
parent b9e2723175
commit f53ab56e92
6 changed files with 2 additions and 166 deletions
@@ -0,0 +1,18 @@
require 'spec_helper'
feature 'sensitive data exposure' do
before do
UserFixture.reset_all_users
@normal_user = UserFixture.normal_user
@normal_user.work_info.update_attribute(:SSN, '999-99-9999')
end
# this won't work with javascript_driver, as it'll apply the javascript
# function to mask this value and the source will be overwritten.
scenario 'attack' do
login @normal_user
visit "/users/#{@normal_user.user_id}/work_info"
pending(:if => verifying_fixed?) { page.source.should include '999-99-9999' }
end
end