summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-05-12 10:29:25 -0500
committerDouwe Maan <douwe@selenight.nl>2017-05-12 10:35:41 -0500
commite9d7b6cd8facc4828fc4abfb82902d803d523882 (patch)
treeccd3a136719c8abbe5a48e49aab56164c8916fc1 /spec/lib
parent02650d97e5e3134c33514334f4721f5b4d1ebd26 (diff)
downloadgitlab-ce-e9d7b6cd8facc4828fc4abfb82902d803d523882.tar.gz
Link Gemfile git URLs
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/gitlab/dependency_linker/gemfile_linker_spec.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/lib/gitlab/dependency_linker/gemfile_linker_spec.rb b/spec/lib/gitlab/dependency_linker/gemfile_linker_spec.rb
index 62e477e1de0..024a03a0ef5 100644
--- a/spec/lib/gitlab/dependency_linker/gemfile_linker_spec.rb
+++ b/spec/lib/gitlab/dependency_linker/gemfile_linker_spec.rb
@@ -30,7 +30,7 @@ describe Gitlab::DependencyLinker::GemfileLinker, lib: true do
# Specify a sprockets version due to increased performance
# See https://gitlab.com/gitlab-org/gitlab-ce/issues/6069
- gem 'sprockets', '~> 3.6.0'
+ gem 'sprockets', '~> 3.6.0', git: 'https://gitlab.example.com/gems/sprockets'
# Default values for AR models
gem 'default_value_for', '~> 3.0.0'
@@ -59,5 +59,9 @@ describe Gitlab::DependencyLinker::GemfileLinker, lib: true do
expect(subject).to include(link('rails/rails', 'https://github.com/rails/rails'))
expect(subject).to include(link('rails/responders', 'https://github.com/rails/responders'))
end
+
+ it 'links Git repos' do
+ expect(subject).to include(link('https://gitlab.example.com/gems/sprockets', 'https://gitlab.example.com/gems/sprockets'))
+ end
end
end