Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
heptapod
heptapod
Commits
74eba2112fde
Commit
710ac3ce
authored
Dec 17, 2020
by
Georges Racinet
🦑
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hgitay_commit: Rspec tests for error in #get_messages
--HG-- branch : heptapod-stable
parent
6ed1818859bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
spec/lib/gitlab/mercurial/hgitaly_commit_spec.rb
spec/lib/gitlab/mercurial/hgitaly_commit_spec.rb
+12
-0
No files found.
spec/lib/gitlab/mercurial/hgitaly_commit_spec.rb
View file @
74eba211
...
...
@@ -195,5 +195,17 @@ def gitsha(sha)
"Commit foo
\n
"
,
"Commit bar
\n
"
]
)
end
it
'returns error if unknown commit_ids sent'
do
expect
do
described_class
.
get_messages
(
subject
,
[
hgsha_1
,
'134deadbeef'
,
hgsha_2
])
end
.
to
raise_error
(
GRPC
::
Internal
,
/object not found/
)
# consistency with HgGitRepository
expect
do
described_class
.
get_messages
(
hg_git_repository
,
[
gitsha_1
,
'134deadbeef'
,
gitsha_2
])
end
.
to
raise_error
(
GRPC
::
Internal
,
/object not found/
)
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