Skip to content
代码片段 群组 项目
未验证 提交 b0ba143c 编辑于 作者: Kerri Miller's avatar Kerri Miller 提交者: GitLab
浏览文件

Merge branch 'remove-upgrade-plan-path' into 'master'

Remove gitlab_routing_helper.rb: upgrade_plan_path

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/140404



Merged-by: default avatarKerri Miller <kerrizor@kerrizor.com>
Approved-by: default avatarJames Nutt <jnutt@gitlab.com>
Approved-by: default avatarKerri Miller <kerrizor@kerrizor.com>
Co-authored-by: default avatarTed Tran <tedtran2019@gmail.com>
No related branches found
No related tags found
无相关合并请求
......@@ -72,12 +72,6 @@ def project_vulnerability_path(project, vulnerability, *args)
project_security_vulnerability_path(project, vulnerability, *args)
end
def upgrade_plan_path(group)
return profile_billings_path if group.blank?
group_billings_path(group)
end
def self.url_helper(route_name)
define_method("#{route_name}_url") do |*args|
path = public_send(:"#{route_name}_path", *args) # rubocop:disable GitlabSecurity/PublicSend
......
......@@ -192,26 +192,6 @@
end
end
describe '#upgrade_plan_path' do
subject { upgrade_plan_path(group) }
context 'when the group is present' do
let(:group) { build_stubbed(:group) }
it "returns the group billing path" do
expect(subject).to eq(group_billings_path(group))
end
end
context 'when the group is blank' do
let(:group) { nil }
it "returns the profile billing path" do
expect(subject).to eq(profile_billings_path)
end
end
end
describe '#vulnerability_url' do
let_it_be(:vulnerability) { create(:vulnerability) }
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册