Commit 46088505 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

RSpec tests: fixed for Gitlab::RepositoryUrlBuilder

In Heptapod, the presence of a `.git` path suffix is not
the reponsibility of RepositoryUrlBuilder: it is decided ahead
because it depends on information available from the container
model. That is indeed an internal API change from upstream GitLab.

These tests run on the default GitLab fixtures, hence on Git
repositories. They have to pass down the expected '.git' suffix
to the builder.
parent c98aa6a7cef2
......@@ -18,7 +18,7 @@
let(:container) { build_stubbed(factory) }
let(:repository) { container.repository }
let(:path) { }
let(:url) {, protocol: protocol) }
let(:url) { + '.git', protocol: protocol) }
context 'when passing SSH protocol' do
let(:protocol) { :ssh }
Supports Markdown
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