Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-06-27 22:47:57 +0300
committerDouwe Maan <douwe@selenight.nl>2017-06-28 00:20:01 +0300
commit34f7c3bd1a189ff79205f75d8f8b45b1e6a43c15 (patch)
tree84f1526643612c2d2c2fbbbdf1d5ef7d321aa16e /spec/lib/gitlab/dependency_linker
parent585e6aa5b20b31b1de01f7c5aa9aea67d7a377f4 (diff)
Fix diff of requirements.txt file by not matching newlines as part of package names
Diffstat (limited to 'spec/lib/gitlab/dependency_linker')
-rw-r--r--spec/lib/gitlab/dependency_linker/requirements_txt_linker_spec.rb4
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