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
Boxiang Sun
gitlab-ce
Commits
e72c50fc
Commit
e72c50fc
authored
Mar 17, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change sort spec description
parent
3735b8aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/finders/pipelines_finder_spec.rb
spec/finders/pipelines_finder_spec.rb
+2
-2
No files found.
spec/finders/pipelines_finder_spec.rb
View file @
e72c50fc
...
@@ -216,7 +216,7 @@ describe PipelinesFinder do
...
@@ -216,7 +216,7 @@ describe PipelinesFinder do
context
'when order_by is invalid'
do
context
'when order_by is invalid'
do
let
(
:params
)
{
{
order_by:
'invalid_column'
,
sort:
'desc'
}
}
let
(
:params
)
{
{
order_by:
'invalid_column'
,
sort:
'desc'
}
}
it
'sorts pipelines
, but order_by is default
'
do
it
'sorts pipelines
with default order_by (id:)
'
do
expect
(
subject
).
to
eq
(
Ci
::
Pipeline
.
order
(
id: :desc
))
expect
(
subject
).
to
eq
(
Ci
::
Pipeline
.
order
(
id: :desc
))
end
end
end
end
...
@@ -224,7 +224,7 @@ describe PipelinesFinder do
...
@@ -224,7 +224,7 @@ describe PipelinesFinder do
context
'when sort is invalid'
do
context
'when sort is invalid'
do
let
(
:params
)
{
{
order_by:
'created_at'
,
sort:
'invalid_sort'
}
}
let
(
:params
)
{
{
order_by:
'created_at'
,
sort:
'invalid_sort'
}
}
it
'sorts pipelines
, but sort is default
'
do
it
'sorts pipelines
with default sort (:desc)
'
do
expect
(
subject
).
to
eq
(
Ci
::
Pipeline
.
order
(
created_at: :desc
))
expect
(
subject
).
to
eq
(
Ci
::
Pipeline
.
order
(
created_at: :desc
))
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