BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
19e1b324
Commit
19e1b324
authored
Dec 02, 2016
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updates tests
Fix tests Fix rubocop error Fix broken test
parent
186c4dd7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
12 deletions
+30
-12
builds_spec.rb
spec/features/projects/builds_spec.rb
+30
-12
No files found.
spec/features/projects/builds_spec.rb
View file @
19e1b324
...
@@ -228,24 +228,42 @@ feature 'Builds', :feature do
...
@@ -228,24 +228,42 @@ feature 'Builds', :feature do
end
end
end
end
context
"Build starts environment"
do
context
'When build starts environment'
do
context
"Build is successfull and has deployment"
do
context
'Build is successfull and has deployment'
do
it
"shows a link for the build"
do
it
'shows a link for the build'
do
-
# link to environment.name
environment
=
create
(
:environment
,
project:
project
)
expect
(
page
).
to
have_link
()
pipeline
=
create
(
:ci_pipeline
,
project:
project
)
deployment
=
create
(
:deployment
)
build1
=
create
(
:ci_build
,
:success
,
environment:
environment
.
name
,
deployments:
[
deployment
],
pipeline:
pipeline
)
visit
namespace_project_build_path
(
project
.
namespace
,
project
,
build1
)
expect
(
page
).
to
have_link
environment
.
name
end
end
end
end
context
"Build is complete and not successfull"
do
context
'Build is complete and not successfull'
do
it
"shows a link for the build"
do
it
'shows a link for the build'
do
-
# link to environment.name
environment
=
create
(
:environment
,
project:
project
)
expect
(
page
).
to
have_link
()
pipeline
=
create
(
:ci_pipeline
,
project:
project
)
build1
=
create
(
:ci_build
,
:failed
,
environment:
environment
.
name
,
pipeline:
pipeline
)
visit
namespace_project_build_path
(
project
.
namespace
,
project
,
build1
)
expect
(
page
).
to
have_link
environment
.
name
end
end
end
end
context
"Build creates a new deployment"
do
context
'Build creates a new deployment'
do
it
"shows a link to lastest deployment"
do
it
'shows a link to lastest deployment'
do
expect
(
page
).
to
have_link
(
"latest deployment"
)
environment
=
create
(
:environment
,
project:
project
)
create
(
:deployment
,
environment:
environment
,
sha:
project
.
commit
.
id
)
pipeline
=
create
(
:ci_pipeline
,
project:
project
)
build1
=
create
(
:ci_build
,
:success
,
environment:
environment
.
name
,
pipeline:
pipeline
)
visit
namespace_project_build_path
(
project
.
namespace
,
project
,
build1
)
expect
(
page
).
to
have_link
(
'latest deployment'
)
end
end
end
end
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