summaryrefslogtreecommitdiff
path: root/spec/features/environments_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/environments_spec.rb')
-rw-r--r--spec/features/environments_spec.rb5
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