diff options
author | Nick Thomas <nick@gitlab.com> | 2017-09-06 12:29:14 +0100 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2017-09-06 15:29:13 +0100 |
commit | 759f34bd0a250cb2cdf1b718837b56bb28fa1939 (patch) | |
tree | 50a007c6d51ef6fbd9a6cea33c5bccf7c23d6a22 /spec | |
parent | 5dd06f69c3ad316518fe5374010081d89e5febe7 (diff) | |
download | gitlab-ce-759f34bd0a250cb2cdf1b718837b56bb28fa1939.tar.gz |
Backport EE fixes to Gitlab::UrlSanitizer to CE
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/url_sanitizer_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/gitlab/url_sanitizer_spec.rb b/spec/lib/gitlab/url_sanitizer_spec.rb index 308b1a128be..c1dc39b38de 100644 --- a/spec/lib/gitlab/url_sanitizer_spec.rb +++ b/spec/lib/gitlab/url_sanitizer_spec.rb @@ -57,6 +57,7 @@ describe Gitlab::UrlSanitizer do describe '.valid?' do it 'validates url strings' do expect(described_class.valid?(nil)).to be(false) + expect(described_class.valid?('')).to be(false) expect(described_class.valid?('valid@project:url.git')).to be(true) expect(described_class.valid?('123://invalid:url')).to be(false) end |