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
e19687b2
Commit
e19687b2
authored
Mar 01, 2017
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Rubocop offenses in commit status API specs
parent
2bc938ef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
spec/requests/api/commit_statuses_spec.rb
spec/requests/api/commit_statuses_spec.rb
+6
-3
No files found.
spec/requests/api/commit_statuses_spec.rb
View file @
e19687b2
...
@@ -159,7 +159,8 @@ describe API::CommitStatuses, api: true do
...
@@ -159,7 +159,8 @@ describe API::CommitStatuses, api: true do
ref:
'develop'
,
ref:
'develop'
,
description:
'test'
,
description:
'test'
,
coverage:
80.0
,
coverage:
80.0
,
target_url:
'http://gitlab.com/status'
}
target_url:
'http://gitlab.com/status'
}
expect
(
response
).
to
have_http_status
(
201
)
expect
(
response
).
to
have_http_status
(
201
)
expect
(
json_response
[
'sha'
]).
to
eq
(
commit
.
id
)
expect
(
json_response
[
'sha'
]).
to
eq
(
commit
.
id
)
...
@@ -180,14 +181,16 @@ describe API::CommitStatuses, api: true do
...
@@ -180,14 +181,16 @@ describe API::CommitStatuses, api: true do
ref:
'develop'
,
ref:
'develop'
,
description:
'coverage test'
,
description:
'coverage test'
,
coverage:
0.0
,
coverage:
0.0
,
target_url:
'http://gitlab.com/status'
}
target_url:
'http://gitlab.com/status'
}
post
api
(
post_url
,
developer
),
{
post
api
(
post_url
,
developer
),
{
state:
'success'
,
state:
'success'
,
name:
'coverage'
,
name:
'coverage'
,
ref:
'develop'
,
ref:
'develop'
,
description:
'new description'
,
description:
'new description'
,
coverage:
90.0
}
coverage:
90.0
}
end
end
it
'updates a commit status'
do
it
'updates a commit status'
do
...
...
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