BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
305c8751
Commit
305c8751
authored
Feb 14, 2018
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the use to Git::Location
parent
58d1ad56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
show.rb
qa/qa/page/project/show.rb
+1
-1
location_spec.rb
qa/spec/git/location_spec.rb
+5
-5
No files found.
qa/qa/page/project/show.rb
View file @
305c8751
...
...
@@ -37,7 +37,7 @@ module QA
end
def
repository_location_uri
Git
::
Repository
::
Location
.
parse
(
repository_location
)
Git
::
Location
.
new
(
repository_location
)
end
def
project_name
...
...
qa/spec/git/location_spec.rb
View file @
305c8751
describe
QA
::
Git
::
Location
do
describe
'.
parse
'
do
describe
'.
new
'
do
context
'when URI starts with ssh://'
do
context
'when URI has port'
do
it
'parses correctly'
do
uri
=
described_class
.
parse
(
'ssh://git@qa.test:2222/sandbox/qa/repo.git'
)
.
new
(
'ssh://git@qa.test:2222/sandbox/qa/repo.git'
)
expect
(
uri
.
user
).
to
eq
(
'git'
)
expect
(
uri
.
host
).
to
eq
(
'qa.test'
)
...
...
@@ -16,7 +16,7 @@ describe QA::Git::Location do
context
'when URI does not have port'
do
it
'parses correctly'
do
uri
=
described_class
.
parse
(
'ssh://git@qa.test/sandbox/qa/repo.git'
)
.
new
(
'ssh://git@qa.test/sandbox/qa/repo.git'
)
expect
(
uri
.
user
).
to
eq
(
'git'
)
expect
(
uri
.
host
).
to
eq
(
'qa.test'
)
...
...
@@ -30,7 +30,7 @@ describe QA::Git::Location do
context
'when host does not have colons'
do
it
'parses correctly'
do
uri
=
described_class
.
parse
(
'git@qa.test:sandbox/qa/repo.git'
)
.
new
(
'git@qa.test:sandbox/qa/repo.git'
)
expect
(
uri
.
user
).
to
eq
(
'git'
)
expect
(
uri
.
host
).
to
eq
(
'qa.test'
)
...
...
@@ -42,7 +42,7 @@ describe QA::Git::Location do
context
'when host has a colon'
do
it
'parses correctly'
do
uri
=
described_class
.
parse
(
'[git@qa:test]:sandbox/qa/repo.git'
)
.
new
(
'[git@qa:test]:sandbox/qa/repo.git'
)
expect
(
uri
.
user
).
to
eq
(
'git'
)
expect
(
uri
.
host
).
to
eq
(
'qa%3Atest'
)
...
...
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