Commit 88ea03f9 authored by Robert Speicher's avatar Robert Speicher

Update operation_service_spec for error_code

parent ad3b0b16
...@@ -209,10 +209,12 @@ describe Gitlab::GitalyClient::OperationService do ...@@ -209,10 +209,12 @@ describe Gitlab::GitalyClient::OperationService do
end end
context 'when a create_tree_error is present' do 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 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
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