removes hardcoded age, favours setting

This commit is contained in:
Juanjo Bazán
2017-01-09 16:05:27 +01:00
parent 220e7397e1
commit e2118f701b
9 changed files with 21 additions and 21 deletions

View File

@@ -63,13 +63,13 @@ feature 'DocumentVerifications' do
end
scenario 'User age is checked' do
expect_any_instance_of(Verification::Management::Document).to receive(:under_sixteen?).and_return(true)
expect_any_instance_of(Verification::Management::Document).to receive(:under_age?).and_return(true)
visit management_document_verifications_path
fill_in 'document_verification_document_number', with: '12345678Z'
click_button 'Check'
expect(page).to have_content "You must be over 16 to verify your account."
expect(page).to have_content "You don't have the required age to verify your account."
end
end