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
d15c120f
Commit
d15c120f
authored
Mar 01, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix created_at test case because of sorting failure
parent
fd302061
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
spec/finders/pipelines_finder_spec.rb
spec/finders/pipelines_finder_spec.rb
+8
-8
No files found.
spec/finders/pipelines_finder_spec.rb
View file @
d15c120f
...
...
@@ -4,14 +4,14 @@ describe PipelinesFinder do
let
(
:user
)
{
create
(
:user
)
}
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let!
(
:tag_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
ref:
'v1.0.0'
)
}
let!
(
:created_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
status:
'created'
)
}
let!
(
:pending_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
status:
'pending'
)
}
let!
(
:running_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
status:
'running'
)
}
let!
(
:success_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
status:
'success'
)
}
let!
(
:failed_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
status:
'failed'
)
}
let!
(
:canceled_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
status:
'canceled'
)
}
let!
(
:skipped_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
status:
'skipped'
)
}
let!
(
:tag_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
10
.
minutes
.
ago
,
ref:
'v1.0.0'
)
}
let!
(
:created_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
9
.
minutes
.
ago
,
status:
'created'
)
}
let!
(
:pending_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
8
.
minutes
.
ago
,
status:
'pending'
)
}
let!
(
:running_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
7
.
minutes
.
ago
,
status:
'running'
)
}
let!
(
:success_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
6
.
minutes
.
ago
,
status:
'success'
)
}
let!
(
:failed_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
5
.
minutes
.
ago
,
status:
'failed'
)
}
let!
(
:canceled_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
2
.
minutes
.
ago
,
status:
'canceled'
)
}
let!
(
:skipped_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
created_at:
1
.
minute
.
ago
,
status:
'skipped'
)
}
let!
(
:yaml_errors_pipeline
)
{
create
(
:ci_pipeline
,
project:
project
,
user:
user
,
yaml_errors:
'Syntax error'
)
}
subject
{
described_class
.
new
(
project
,
params
).
execute
}
...
...
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