Merge branch 'rs-remove-unused-method' into 'master'
Remove unused `Project#web_url_without_protocol` method See merge request !8416
This commit is contained in:
commit
71a692c16d
|
@ -609,10 +609,6 @@ class Project < ActiveRecord::Base
|
|||
Gitlab::Routing.url_helpers.namespace_project_url(self.namespace, self)
|
||||
end
|
||||
|
||||
def web_url_without_protocol
|
||||
web_url.split('://')[1]
|
||||
end
|
||||
|
||||
def new_issue_address(author)
|
||||
return unless Gitlab::IncomingEmail.supports_issue_creation? && author
|
||||
|
||||
|
|
|
@ -362,14 +362,6 @@ describe Project, models: true do
|
|||
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
|
||||
let(:project) { create(:empty_project, path: "somewhere") }
|
||||
let(:user) { create(:user) }
|
||||
|
|
Loading…
Reference in New Issue