Skip to content
代码片段 群组 项目
提交 d2be5844 编辑于 作者: Etienne Baqué's avatar Etienne Baqué
浏览文件

Merge branch...

Merge branch '325263-wiki-kerberos-clone-button-fails-with-undefined-local-variable-or-method-project' into 'master'

Fix 500 error when cloning a wiki using the Kerberos clone button

See merge request gitlab-org/gitlab!58270
No related branches found
No related tags found
无相关合并请求
- if alternative_kerberos_url? - if alternative_kerberos_url?
%li %li
= kerberos_clone_button(project) = kerberos_clone_button(container)
---
title: Fix 500 error when cloning a wiki using the Kerberos clone button
merge_request: 58270
author:
type: fixed
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe 'shared/kerberos_clone_button' do
let_it_be(:project) { create(:project) }
let(:partial) { 'shared/kerberos_clone_button' }
before do
allow(view).to receive(:alternative_kerberos_url?).and_return(true)
end
subject { rendered }
context 'Kerberos clone can be triggered' do
it 'renders a working clone button for the project' do
render partial, container: project
is_expected.to have_link('KRB5', href: project.kerberos_url_to_repo)
end
it 'renders a working clone button for the wiki' do
render partial, container: project.wiki
is_expected.to have_link('KRB5', href: project.wiki.kerberos_url_to_repo)
end
end
end
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册