Commit 710ac3ce authored by Georges Racinet's avatar Georges Racinet 🦑

hgitay_commit: Rspec tests for error in #get_messages

--HG--
branch : heptapod-stable
parent 6ed1818859bd
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment