Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
3032a0ca
Commit
3032a0ca
authored
Oct 18, 2016
by
Kamil Trzcinski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge two scenarios into one
parent
c4e45d89
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
spec/features/environments_spec.rb
spec/features/environments_spec.rb
+2
-8
No files found.
spec/features/environments_spec.rb
View file @
3032a0ca
...
@@ -20,11 +20,8 @@ feature 'Environments', feature: true do
...
@@ -20,11 +20,8 @@ feature 'Environments', feature: true do
end
end
context
'shows two tabs'
do
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'
)
expect
(
page
).
to
have_link
(
'Available'
)
end
scenario
'does show Stopped tab with link'
do
expect
(
page
).
to
have_link
(
'Stopped'
)
expect
(
page
).
to
have_link
(
'Stopped'
)
end
end
end
end
...
@@ -47,11 +44,8 @@ feature 'Environments', feature: true do
...
@@ -47,11 +44,8 @@ feature 'Environments', feature: true do
expect
(
page
).
to
have_link
(
environment
.
name
)
expect
(
page
).
to
have_link
(
environment
.
name
)
end
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'
)
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'
)
expect
(
page
.
find
(
'.js-stopped-environments-count'
).
text
).
to
eq
(
'0'
)
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment