From 908b37bc88d9e671b508e064287564cc484d3c29 Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Fri, 7 Oct 2016 11:48:43 +0100 Subject: [PATCH] Updates test in order to look for link --- spec/features/environments_spec.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb index a4d2460f595..05925f93220 100644 --- a/spec/features/environments_spec.rb +++ b/spec/features/environments_spec.rb @@ -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