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
88ea03f9
Commit
88ea03f9
authored
Nov 05, 2019
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update operation_service_spec for error_code
parent
ad3b0b16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
spec/lib/gitlab/gitaly_client/operation_service_spec.rb
spec/lib/gitlab/gitaly_client/operation_service_spec.rb
+4
-2
No files found.
spec/lib/gitlab/gitaly_client/operation_service_spec.rb
View file @
88ea03f9
...
...
@@ -209,10 +209,12 @@ describe Gitlab::GitalyClient::OperationService do
end
context
'when a create_tree_error is present'
do
let
(
:response
)
{
response_class
.
new
(
create_tree_error:
"something failed"
)
}
let
(
:response
)
{
response_class
.
new
(
create_tree_error:
"something failed"
,
create_tree_error_code:
'EMPTY'
)
}
it
'raises a CreateTreeError'
do
expect
{
subject
}.
to
raise_error
(
Gitlab
::
Git
::
Repository
::
CreateTreeError
,
"something failed"
)
expect
{
subject
}.
to
raise_error
(
Gitlab
::
Git
::
Repository
::
CreateTreeError
)
do
|
error
|
expect
(
error
.
error_code
).
to
eq
(
:empty
)
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