diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-10-07 11:48:43 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-10-07 11:48:43 +0100 |
commit | 908b37bc88d9e671b508e064287564cc484d3c29 (patch) | |
tree | e9102f1dbc5667118dc99ed03ecaf75486693f3c /spec | |
parent | e369455f73f34d74bb1ecbaacbb1fbf07292eda6 (diff) | |
download | gitlab-ce-908b37bc88d9e671b508e064287564cc484d3c29.tar.gz |
Updates test in order to look for link22774-retouch-environments-deployments
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/environments_spec.rb | 5 |
1 files 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 |