Info disclosure spec added

This commit is contained in:
chrismo
2013-10-01 16:47:06 -05:00
parent 0021ddd036
commit 85b0c7608b
+18
View File
@@ -0,0 +1,18 @@
require 'spec_helper'
feature 'sensitive information disclosure' 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 'full ssn returned to view' do
login @normal_user
visit "/users/#{@normal_user.user_id}/work_info"
page.source.should include '999-99-9999'
end
end