Commit 4f720cfd 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.

--HG--
branch : heptapod
parent c98aa6a7cef2
......@@ -18,7 +18,7 @@
let(:container) { build_stubbed(factory) }
let(:repository) { container.repository }
let(:path) { path_generator.call(container) }
let(:url) { subject.build(repository.full_path, protocol: protocol) }
let(:url) { subject.build(repository.full_path + '.git', protocol: protocol) }
context 'when passing SSH protocol' do
let(:protocol) { :ssh }
......
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