diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-06-27 14:47:57 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-06-27 16:20:01 -0500 |
commit | 34f7c3bd1a189ff79205f75d8f8b45b1e6a43c15 (patch) | |
tree | 84f1526643612c2d2c2fbbbdf1d5ef7d321aa16e /spec/lib | |
parent | 585e6aa5b20b31b1de01f7c5aa9aea67d7a377f4 (diff) | |
download | gitlab-ce-34f7c3bd1a189ff79205f75d8f8b45b1e6a43c15.tar.gz |
Fix diff of requirements.txt file by not matching newlines as part of package namesdm-dependency-linker-newlines
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 7e32770f95d..64b233f3e68 100644 --- a/spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb +++ b/spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb @@ -87,5 +87,9 @@ describe Gitlab::DependencyLinker::RequirementsTxtLinker, lib: true do it 'links URLs' do expect(subject).to include(link('http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1820+49a8884-cp34-none-win_amd64.whl', 'http://wxpython.org/Phoenix/snapshot-builds/wxPython_Phoenix-3.0.3.dev1820+49a8884-cp34-none-win_amd64.whl')) end + + it 'does not contain link with a newline as package name' do + expect(subject).not_to include(link("\n", "https://pypi.python.org/pypi/\n")) + end end end |