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
07ce4c28
Commit
07ce4c28
authored
Nov 22, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve reproducibility of build trace test example
parent
89e367f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/features/projects/builds_spec.rb
spec/features/projects/builds_spec.rb
+4
-2
No files found.
spec/features/projects/builds_spec.rb
View file @
07ce4c28
...
@@ -6,8 +6,8 @@ feature 'Builds', :feature do
...
@@ -6,8 +6,8 @@ feature 'Builds', :feature do
let
(
:project
)
{
create
(
:project
)
}
let
(
:project
)
{
create
(
:project
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
(
:pipeline
)
{
create
(
:ci_pipeline
,
project:
project
)
}
let
!
(
:build
)
{
create
(
:ci_build
,
:trace
,
pipeline:
pipeline
)
}
let
(
:build
)
{
create
(
:ci_build
,
:trace
,
pipeline:
pipeline
)
}
let
!
(
:build2
)
{
create
(
:ci_build
)
}
let
(
:build2
)
{
create
(
:ci_build
)
}
let
(
:artifacts_file
)
do
let
(
:artifacts_file
)
do
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/banana_sample.gif'
,
'image/gif'
)
fixture_file_upload
(
Rails
.
root
+
'spec/fixtures/banana_sample.gif'
,
'image/gif'
)
...
@@ -19,6 +19,8 @@ feature 'Builds', :feature do
...
@@ -19,6 +19,8 @@ feature 'Builds', :feature do
end
end
describe
"GET /:project/builds"
do
describe
"GET /:project/builds"
do
let!
(
:build
)
{
create
(
:ci_build
,
pipeline:
pipeline
)
}
context
"Pending scope"
do
context
"Pending scope"
do
before
do
before
do
visit
namespace_project_builds_path
(
project
.
namespace
,
project
,
scope: :pending
)
visit
namespace_project_builds_path
(
project
.
namespace
,
project
,
scope: :pending
)
...
...
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