Commit e712d804 authored by Rémy Coutable's avatar Rémy Coutable

[EE] Reduce diff with CE in spec/models/project_wiki_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5e96f822
# frozen_string_literal: true
require "spec_helper"
describe ProjectWiki do
let(:user) { create(:user, :commit_email) }
let(:project) { create(:project, :wiki_repo, namespace: user.namespace) }
let(:project_wiki) { described_class.new(project, user) }
subject { project_wiki }
describe "#kerberos_url_to_repo" do
it 'returns valid kerberos url for this repo' do
gitlab_kerberos_url = Gitlab.config.build_gitlab_kerberos_url
repo_kerberos_url = "#{gitlab_kerberos_url}/#{subject.full_path}.git"
expect(subject.kerberos_url_to_repo).to eq(repo_kerberos_url)
end
end
end
# coding: utf-8
# frozen_string_literal: true
require "spec_helper"
......@@ -56,14 +55,6 @@ describe ProjectWiki do
end
end
describe "#kerberos_url_to_repo" do
it 'returns valid kerberos url for this repo' do
gitlab_kerberos_url = Gitlab.config.build_gitlab_kerberos_url
repo_kerberos_url = "#{gitlab_kerberos_url}/#{subject.full_path}.git"
expect(subject.kerberos_url_to_repo).to eq(repo_kerberos_url)
end
end
describe "#wiki_base_path" do
it "returns the wiki base path" do
wiki_base_path = "#{Gitlab.config.gitlab.relative_url_root}/#{project.full_path}/wikis"
......
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