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
Jérome Perrin
gitlab-ce
Commits
e249a351
Commit
e249a351
authored
Nov 22, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add missing specs for loading build HTML trace
parent
1e19737c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
7 deletions
+23
-7
spec/features/projects/builds_spec.rb
spec/features/projects/builds_spec.rb
+23
-7
No files found.
spec/features/projects/builds_spec.rb
View file @
e249a351
require
'spec_helper'
require
'tempfile'
describe
"Builds"
do
let
(
:artifacts_file
)
do
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/banana_sample.gif'
,
'image/gif'
)
end
feature
'Builds'
,
:feature
do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
...
...
@@ -13,6 +9,10 @@ describe "Builds" do
let!
(
:build
)
{
create
(
:ci_build
,
:trace
,
pipeline:
pipeline
)
}
let!
(
:build2
)
{
create
(
:ci_build
)
}
let
(
:artifacts_file
)
do
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/banana_sample.gif'
,
'image/gif'
)
end
before
do
project
.
team
<<
[
user
,
:developer
]
login_as
(
user
)
...
...
@@ -163,7 +163,7 @@ describe "Builds" do
end
end
context
'Build r
aw trace'
do
feature
'R
aw trace'
do
before
do
build
.
run!
visit
namespace_project_build_path
(
project
.
namespace
,
project
,
build
)
...
...
@@ -174,7 +174,23 @@ describe "Builds" do
end
end
describe
'Variables'
do
feature
'HTML trace'
,
:js
do
before
do
build
.
run!
visit
namespace_project_build_path
(
project
.
namespace
,
project
,
build
)
end
it
'loads build trace'
do
expect
(
page
).
to
have_content
'BUILD TRACE'
build
.
append_trace
(
' and more trace'
,
11
)
expect
(
page
).
to
have_content
'BUILD TRACE and more trace'
end
end
feature
'Variables'
do
let
(
:trigger_request
)
{
create
(
:ci_trigger_request_with_variables
)
}
let
(
:build
)
do
...
...
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