diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2017-06-24 00:17:21 +0300 |
---|---|---|
committer | kushalpandya <kushal@gitlab.com> | 2017-06-26 08:42:34 +0300 |
commit | 394ad4028883b4881324e6a654645c8a17f90851 (patch) | |
tree | 36c3785e377eac0c17502de2533ab2cbc00c323e /spec | |
parent | b4702282daeb7b05e8fc037219e5ebad422a870d (diff) |
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')
-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 |