Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
0a6925c1
Commit
0a6925c1
authored
Oct 03, 2017
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove those tests as they're not needed anymore
Because now addressable would consider them invalid anyway.
parent
9e42df3c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
spec/lib/gitlab/url_sanitizer_spec.rb
spec/lib/gitlab/url_sanitizer_spec.rb
+0
-18
No files found.
spec/lib/gitlab/url_sanitizer_spec.rb
View file @
0a6925c1
...
...
@@ -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'
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment