Commit 952d64f8 authored by Rémy Coutable's avatar Rémy Coutable

[EE] Reduce the diff with CE in spec/helpers/projects_helper_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 1f22f70b
......@@ -32,4 +32,15 @@ describe ProjectsHelper do
end
end
end
describe 'default_clone_protocol' do
context 'when gitlab.config.kerberos is enabled and user is logged in' do
it 'returns krb5 as default protocol' do
allow(Gitlab.config.kerberos).to receive(:enabled).and_return(true)
allow(helper).to receive(:current_user).and_return(double)
expect(helper.send(:default_clone_protocol)).to eq('krb5')
end
end
end
end
# frozen_string_literal: true
require 'spec_helper'
describe ProjectsHelper do
......@@ -350,15 +352,6 @@ describe ProjectsHelper do
expect(helper.send(:default_clone_protocol)).to eq('https')
end
end
context 'when gitlab.config.kerberos is enabled and user is logged in' do
it 'returns krb5 as default protocol' do
allow(Gitlab.config.kerberos).to receive(:enabled).and_return(true)
allow(helper).to receive(:current_user).and_return(double)
expect(helper.send(:default_clone_protocol)).to eq('krb5')
end
end
end
describe '#last_push_event' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment