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
Jérome Perrin
gitlab-ce
Commits
e8e8ae4d
Commit
e8e8ae4d
authored
Sep 01, 2017
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
68f6c61c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
spec/models/commit_status_spec.rb
spec/models/commit_status_spec.rb
+4
-1
spec/requests/api/commit_statuses_spec.rb
spec/requests/api/commit_statuses_spec.rb
+1
-1
No files found.
spec/models/commit_status_spec.rb
View file @
e8e8ae4d
...
@@ -447,7 +447,10 @@ describe CommitStatus do
...
@@ -447,7 +447,10 @@ describe CommitStatus do
describe
'set failure_reason when drop'
do
describe
'set failure_reason when drop'
do
let
(
:commit_status
)
{
create
(
:commit_status
,
:created
)
}
let
(
:commit_status
)
{
create
(
:commit_status
,
:created
)
}
subject
{
commit_status
.
drop!
(
reason
);
commit_status
}
subject
do
commit_status
.
drop!
(
reason
)
commit_status
end
context
'when failure_reason is nil'
do
context
'when failure_reason is nil'
do
let
(
:reason
)
{
}
let
(
:reason
)
{
}
...
...
spec/requests/api/commit_statuses_spec.rb
View file @
e8e8ae4d
...
@@ -143,7 +143,7 @@ describe API::CommitStatuses do
...
@@ -143,7 +143,7 @@ describe API::CommitStatuses do
expect
(
json_response
[
'target_url'
]).
to
be_nil
expect
(
json_response
[
'target_url'
]).
to
be_nil
expect
(
json_response
[
'description'
]).
to
be_nil
expect
(
json_response
[
'description'
]).
to
be_nil
if
status
==
'failed'
if
status
==
'failed'
expect
(
json_response
[
'failure_reason'
]).
to
eq
(
'api_failure'
)
expect
(
CommitStatus
.
find
(
json_response
[
'id'
])).
to
be_api_failure
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