context'with an exception with the UserMergeBranchError'do
let(:permission_error)do
GRPC::PermissionDenied.new(
"GitLab: You are not allowed to push code to this project.",
{"grpc-status-details-bin"=>
"\b\a\x129GitLab: You are not allowed to push code to this project.\x1A\xDE\x01\n/type.googleapis.com/gitaly.UserMergeBranchError\x12\xAA\x01\n\xA7\x01\n1You are not allowed to push code to this project.\x12\x03web\x1A\auser-15\"df15b32277d2c55c6c595845a87109b09c913c556 5d6e0f935ad9240655f64e883cd98fad6f9a17ee refs/heads/master\n"}
)
end
it'raises PreRecieveError with the error message'do