fixes specs for exact link texts

This commit is contained in:
rgarcia
2015-09-03 13:17:26 +02:00
parent efecc697db
commit 28fd82c06e
6 changed files with 14 additions and 14 deletions

View File

@@ -25,7 +25,7 @@ feature 'Verify Letter' do
login_as(user)
visit new_letter_path
expect(page).to have_link "Office of Citizen", href: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD"
expect(page).to have_link "See Office of Citizen", href: "http://www.madrid.es/portales/munimadrid/es/Inicio/El-Ayuntamiento/Atencion-al-ciudadano/Oficinas-de-Atencion-al-Ciudadano?vgnextfmt=default&vgnextchannel=5b99cde2e09a4310VgnVCM1000000b205a0aRCRD"
end
scenario 'Errors on verification code' do
@@ -51,7 +51,7 @@ feature 'Verify Letter' do
allow_any_instance_of(CensusApi).to receive(:address).and_return(nil)
click_button "Send me a letter"
click_button "Send me a letter with the code"
expect(page).to have_content "We could not verify your address with the Census please try again later"
end