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
f0e3076a
Commit
f0e3076a
authored
Mar 17, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'to be > 0' to 'not_to be_empty'. 'to eq(0)' to 'to be_empty'
parent
974c3c13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
spec/requests/api/pipelines_spec.rb
spec/requests/api/pipelines_spec.rb
+9
-9
No files found.
spec/requests/api/pipelines_spec.rb
View file @
f0e3076a
...
@@ -50,7 +50,7 @@ describe API::Pipelines do
...
@@ -50,7 +50,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
be
>
0
expect
(
json_response
).
not_to
be_empty
json_response
.
each
{
|
r
|
expect
(
r
[
'status'
]).
to
eq
(
target
)
}
json_response
.
each
{
|
r
|
expect
(
r
[
'status'
]).
to
eq
(
target
)
}
end
end
end
end
...
@@ -62,7 +62,7 @@ describe API::Pipelines do
...
@@ -62,7 +62,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
be
>
0
expect
(
json_response
).
not_to
be_empty
json_response
.
each
{
|
r
|
expect
(
r
[
'status'
]).
to
be_in
(
%w[success failed canceled]
)
}
json_response
.
each
{
|
r
|
expect
(
r
[
'status'
]).
to
be_in
(
%w[success failed canceled]
)
}
end
end
end
end
...
@@ -73,7 +73,7 @@ describe API::Pipelines do
...
@@ -73,7 +73,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
be
>
0
expect
(
json_response
).
not_to
be_empty
expect
(
json_response
.
last
[
'sha'
]).
to
eq
(
Ci
::
Pipeline
.
where
(
tag:
false
).
last
.
sha
)
expect
(
json_response
.
last
[
'sha'
]).
to
eq
(
Ci
::
Pipeline
.
where
(
tag:
false
).
last
.
sha
)
end
end
end
end
...
@@ -84,7 +84,7 @@ describe API::Pipelines do
...
@@ -84,7 +84,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
be
>
0
expect
(
json_response
).
not_to
be_empty
expect
(
json_response
.
last
[
'sha'
]).
to
eq
(
Ci
::
Pipeline
.
where
(
tag:
true
).
last
.
sha
)
expect
(
json_response
.
last
[
'sha'
]).
to
eq
(
Ci
::
Pipeline
.
where
(
tag:
true
).
last
.
sha
)
end
end
end
end
...
@@ -106,7 +106,7 @@ describe API::Pipelines do
...
@@ -106,7 +106,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
be
>
0
expect
(
json_response
).
not_to
be_empty
json_response
.
each
{
|
r
|
expect
(
r
[
'status'
]).
to
eq
(
target
)
}
json_response
.
each
{
|
r
|
expect
(
r
[
'status'
]).
to
eq
(
target
)
}
end
end
end
end
...
@@ -128,7 +128,7 @@ describe API::Pipelines do
...
@@ -128,7 +128,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
be
>
0
expect
(
json_response
).
not_to
be_empty
json_response
.
each
{
|
r
|
expect
(
r
[
'ref'
]).
to
eq
(
'master'
)
}
json_response
.
each
{
|
r
|
expect
(
r
[
'ref'
]).
to
eq
(
'master'
)
}
end
end
end
end
...
@@ -139,7 +139,7 @@ describe API::Pipelines do
...
@@ -139,7 +139,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
eq
(
0
)
expect
(
json_response
).
to
be_empty
end
end
end
end
end
end
...
@@ -161,7 +161,7 @@ describe API::Pipelines do
...
@@ -161,7 +161,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
eq
(
0
)
expect
(
json_response
).
to
be_empty
end
end
end
end
end
end
...
@@ -183,7 +183,7 @@ describe API::Pipelines do
...
@@ -183,7 +183,7 @@ describe API::Pipelines do
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
have_http_status
(
200
)
expect
(
response
).
to
include_pagination_headers
expect
(
response
).
to
include_pagination_headers
expect
(
json_response
.
count
).
to
eq
(
0
)
expect
(
json_response
).
to
be_empty
end
end
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