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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
171229d4
Commit
171229d4
authored
Mar 09, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
No need 'a'
parent
9324a464
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
spec/finders/pipelines_finder_spec.rb
spec/finders/pipelines_finder_spec.rb
+13
-13
No files found.
spec/finders/pipelines_finder_spec.rb
View file @
171229d4
...
...
@@ -32,7 +32,7 @@ describe PipelinesFinder do
end
end
context
'when
a
scope is passed'
do
context
'when scope is passed'
do
context
'when selecting running'
do
let
(
:params
)
{
{
scope:
'running'
}
}
...
...
@@ -74,7 +74,7 @@ describe PipelinesFinder do
end
end
context
'when
a
status is passed'
do
context
'when status is passed'
do
context
'when selecting running'
do
let
(
:params
)
{
{
status:
'running'
}
}
...
...
@@ -124,8 +124,8 @@ describe PipelinesFinder do
end
end
context
'when
a
ref is passed'
do
context
'when
a
ref exists'
do
context
'when ref is passed'
do
context
'when ref exists'
do
let
(
:params
)
{
{
ref:
'master'
}
}
it
'selects all pipelines which belong to the ref'
do
...
...
@@ -133,7 +133,7 @@ describe PipelinesFinder do
end
end
context
'when
a
ref does not exist'
do
context
'when ref does not exist'
do
let
(
:params
)
{
{
ref:
'invalid-ref'
}
}
it
'selects nothing'
do
...
...
@@ -142,8 +142,8 @@ describe PipelinesFinder do
end
end
context
'when
a
name is passed'
do
context
'when
a
name exists'
do
context
'when name is passed'
do
context
'when name exists'
do
let
(
:params
)
{
{
name:
user1
.
name
}
}
it
'selects all pipelines which belong to the name'
do
...
...
@@ -151,7 +151,7 @@ describe PipelinesFinder do
end
end
context
'when
a
name does not exist'
do
context
'when name does not exist'
do
let
(
:params
)
{
{
name:
'invalid-name'
}
}
it
'selects nothing'
do
...
...
@@ -160,8 +160,8 @@ describe PipelinesFinder do
end
end
context
'when
a
username is passed'
do
context
'when
a
username exists'
do
context
'when username is passed'
do
context
'when username exists'
do
let
(
:params
)
{
{
username:
user1
.
username
}
}
it
'selects all pipelines which belong to the username'
do
...
...
@@ -169,7 +169,7 @@ describe PipelinesFinder do
end
end
context
'when
a
username does not exist'
do
context
'when username does not exist'
do
let
(
:params
)
{
{
username:
'invalid-username'
}
}
it
'selects nothing'
do
...
...
@@ -178,7 +178,7 @@ describe PipelinesFinder do
end
end
context
'when
a
yaml_errors is passed'
do
context
'when yaml_errors is passed'
do
context
'when yaml_errors is true'
do
let
(
:params
)
{
{
yaml_errors:
true
}
}
...
...
@@ -204,7 +204,7 @@ describe PipelinesFinder do
end
end
context
'when
a
order_by and sort are passed'
do
context
'when order_by and sort are passed'
do
context
'when order by created_at asc'
do
let
(
:params
)
{
{
order_by:
'created_at'
,
sort:
'asc'
}
}
...
...
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