Commit 22932188 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Unify spec/features/projects/show/developer_views_empty_project_instructions_spec.rb

parent 999e2e07
require 'rails_helper'
feature 'Projects > Show > Developer views empty project instructions' do
let(:project) { create(:project, :empty_repo) }
let(:developer) { create(:user) }
background do
project.add_developer(developer)
sign_in(developer)
end
context 'with Kerberos enabled' do
background do
allow(Gitlab.config.kerberos).to receive(:enabled).and_return(true)
end
scenario 'defaults to KRB5' do
visit project_path(project)
expect(page).to have_content("git clone #{project.kerberos_url_to_repo}")
end
end
end
......@@ -46,18 +46,6 @@ feature 'Projects > Show > Developer views empty project instructions' do
end
end
context 'with Kerberos enabled' do
background do
allow(Gitlab.config.kerberos).to receive(:enabled).and_return(true)
end
scenario 'defaults to KRB5' do
visit_project
expect_instructions_for('kerberos')
end
end
def visit_project
visit project_path(project)
end
......
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