refactors specs

This commit is contained in:
rgarcia
2015-08-30 12:51:34 +02:00
parent 0f145da18b
commit 01aa0a5a40
3 changed files with 15 additions and 32 deletions

View File

@@ -9,14 +9,7 @@ feature 'Level two verification' do
visit account_path
click_link 'Verify my account'
select 'Spanish ID', from: 'residence_document_type'
fill_in 'residence_document_number', with: "12345678Z"
select_date '31-December-1980', from: 'residence_date_of_birth'
fill_in 'residence_postal_code', with: '28013'
click_button 'Verify'
expect(page).to have_content 'Residence verified'
verify_residence
fill_in 'sms_phone', with: "611111111"
click_button 'Send'