summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-10-03 23:06:55 +0800
committerLin Jen-Shin <godfat@godfat.org>2017-10-03 23:06:55 +0800
commit0a6925c1f5996115529582816415c99f4fb92ab1 (patch)
tree257b88da03b87380e90af219be0b1c5576db9bf3
parent9e42df3cd18b437160ba4159a0f9e19f8540756d (diff)
downloadgitlab-ce-0a6925c1f5996115529582816415c99f4fb92ab1.tar.gz
Remove those tests as they're not needed anymore
Because now addressable would consider them invalid anyway.
-rw-r--r--spec/lib/gitlab/url_sanitizer_spec.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/spec/lib/gitlab/url_sanitizer_spec.rb b/spec/lib/gitlab/url_sanitizer_spec.rb
index 2f5cb92fb67..fc8991fd31f 100644
--- a/spec/lib/gitlab/url_sanitizer_spec.rb
+++ b/spec/lib/gitlab/url_sanitizer_spec.rb
@@ -82,24 +82,6 @@ describe Gitlab::UrlSanitizer do
describe '#credentials' do
context 'credentials in hash' do
- where(:input, :output) do
- { user: 'foo', password: 'bar' } | { user: 'foo', password: 'bar' }
- { user: 'foo', password: '' } | { user: 'foo', password: nil }
- { user: 'foo', password: nil } | { user: 'foo', password: nil }
- { user: '', password: 'bar' } | { user: nil, password: 'bar' }
- { user: '', password: '' } | { user: nil, password: nil }
- { user: '', password: nil } | { user: nil, password: nil }
- { user: nil, password: 'bar' } | { user: nil, password: 'bar' }
- { user: nil, password: '' } | { user: nil, password: nil }
- { user: nil, password: nil } | { user: nil, password: nil }
- end
-
- with_them do
- subject { described_class.new('user@example.com:path.git', credentials: input).credentials }
-
- it { is_expected.to eq(output) }
- end
-
it 'overrides URL-provided credentials' do
sanitizer = described_class.new('http://a:b@example.com', credentials: { user: 'c', password: 'd' })