diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-23 21:17:21 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-23 21:17:21 +0000 |
commit | 2511c19f8fca955269542ebd7da354c32bcf6d58 (patch) | |
tree | 7dc5681ea4c700e486a9f864101a0ab419cd96ea /spec/lib | |
parent | c00f81d8a6f176464997b5a004ca2311e567763f (diff) | |
parent | 11e22835ed7a003c7b31856d1dbad9b8fa22d37f (diff) | |
download | gitlab-ce-2511c19f8fca955269542ebd7da354c32bcf6d58.tar.gz |
Merge branch 'dm-requirements-txt-tilde' into 'master'
Don't match tilde and exclamation mark as part of requirements.txt package name
Closes #34166
See merge request !12431
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb b/spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb index 4da8821726c..7e32770f95d 100644 --- a/spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb +++ b/spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb @@ -54,6 +54,8 @@ describe Gitlab::DependencyLinker::RequirementsTxtLinker, lib: true do Sphinx>=1.3 docutils>=0.7 markupsafe + pytest~=3.0 + foop!=3.0 CONTENT end @@ -78,6 +80,8 @@ describe Gitlab::DependencyLinker::RequirementsTxtLinker, lib: true do expect(subject).to include(link('Sphinx', 'https://pypi.python.org/pypi/Sphinx')) expect(subject).to include(link('docutils', 'https://pypi.python.org/pypi/docutils')) expect(subject).to include(link('markupsafe', 'https://pypi.python.org/pypi/markupsafe')) + expect(subject).to include(link('pytest', 'https://pypi.python.org/pypi/pytest')) + expect(subject).to include(link('foop', 'https://pypi.python.org/pypi/foop')) end it 'links URLs' do |