summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-10-18 16:46:19 +0200
committerKamil Trzcinski <ayufan@ayufan.eu>2016-10-18 16:46:19 +0200
commit3032a0ca891808c9aa1ba69d540bf97e40a84670 (patch)
tree93813784fb79210fb6c66b37d597deca9d44a742 /spec
parentc4e45d89d407016c89c5217cb91a7a82cf8710f1 (diff)
downloadgitlab-ce-3032a0ca891808c9aa1ba69d540bf97e40a84670.tar.gz
Merge two scenarios into one
Diffstat (limited to 'spec')
-rw-r--r--spec/features/environments_spec.rb10
1 files changed, 2 insertions, 8 deletions
diff --git a/spec/features/environments_spec.rb b/spec/features/environments_spec.rb
index 7200e9ad4c1..b565586ee14 100644
--- a/spec/features/environments_spec.rb
+++ b/spec/features/environments_spec.rb
@@ -20,11 +20,8 @@ feature 'Environments', feature: true do
end
context 'shows two tabs' do
- scenario 'does show Available tab with link' do
+ scenario 'shows "Available" and "Stopped" tab with links' do
expect(page).to have_link('Available')
- end
-
- scenario 'does show Stopped tab with link' do
expect(page).to have_link('Stopped')
end
end
@@ -47,11 +44,8 @@ feature 'Environments', feature: true do
expect(page).to have_link(environment.name)
end
- scenario 'does show number of opened environments in Available tab' do
+ scenario 'does show number of available and stopped environments' do
expect(page.find('.js-available-environments-count').text).to eq('1')
- end
-
- scenario 'does show number of closed environments in Stopped tab' do
expect(page.find('.js-stopped-environments-count').text).to eq('0')
end