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
602ea41d
Commit
602ea41d
authored
Jan 03, 2017
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unused `Project#web_url_without_protocol` method
parent
10960d6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
app/models/project.rb
app/models/project.rb
+0
-4
spec/models/project_spec.rb
spec/models/project_spec.rb
+0
-8
No files found.
app/models/project.rb
View file @
602ea41d
...
@@ -609,10 +609,6 @@ class Project < ActiveRecord::Base
...
@@ -609,10 +609,6 @@ class Project < ActiveRecord::Base
Gitlab
::
Routing
.
url_helpers
.
namespace_project_url
(
self
.
namespace
,
self
)
Gitlab
::
Routing
.
url_helpers
.
namespace_project_url
(
self
.
namespace
,
self
)
end
end
def
web_url_without_protocol
web_url
.
split
(
'://'
)[
1
]
end
def
new_issue_address
(
author
)
def
new_issue_address
(
author
)
return
unless
Gitlab
::
IncomingEmail
.
supports_issue_creation?
&&
author
return
unless
Gitlab
::
IncomingEmail
.
supports_issue_creation?
&&
author
...
...
spec/models/project_spec.rb
View file @
602ea41d
...
@@ -362,14 +362,6 @@ describe Project, models: true do
...
@@ -362,14 +362,6 @@ describe Project, models: true do
end
end
end
end
describe
"#web_url_without_protocol"
do
let
(
:project
)
{
create
(
:empty_project
,
path:
"somewhere"
)
}
it
'returns the web URL without the protocol for this repo'
do
expect
(
project
.
web_url_without_protocol
).
to
eq
(
"
#{
Gitlab
.
config
.
gitlab
.
url
.
split
(
'://'
)[
1
]
}
/
#{
project
.
namespace
.
path
}
/somewhere"
)
end
end
describe
"#new_issue_address"
do
describe
"#new_issue_address"
do
let
(
:project
)
{
create
(
:empty_project
,
path:
"somewhere"
)
}
let
(
:project
)
{
create
(
:empty_project
,
path:
"somewhere"
)
}
let
(
:user
)
{
create
(
:user
)
}
let
(
:user
)
{
create
(
:user
)
}
...
...
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