Updates test in order to look for link

This commit is contained in:
Filipa Lacerda 2016-10-07 11:48:43 +01:00
parent e369455f73
commit 908b37bc88
1 changed files with 3 additions and 2 deletions

View File

@ -76,7 +76,7 @@ feature 'Environments', feature: true do
given(:deployment) { create(:deployment, environment: environment, deployable: build) }
scenario 'does show an external link button' do
expect(page).to have_selector('.btn.external-url')
expect(page).to have_link(nil, href: environment.external_url)
end
end
end
@ -147,9 +147,10 @@ feature 'Environments', feature: true do
given(:deployment) { create(:deployment, environment: environment, deployable: build) }
scenario 'does show an external link button' do
expect(page).to have_selector('.btn.external-url')
expect(page).to have_link(nil, href: environment.external_url)
end
end
end
end
end