23 lines
654 B
Ruby
23 lines
654 B
Ruby
|
require 'spec_helper'
|
||
|
|
||
|
describe Gitlab::GithubImport::WikiFormatter, lib: true do
|
||
|
let(:project) do
|
||
|
create(:project, namespace: create(:namespace, path: 'gitlabhq'),
|
||
|
import_url: 'https://xxx@github.com/gitlabhq/gitlabhq.git')
|
||
|
end
|
||
|
|
||
|
subject(:wiki) { described_class.new(project)}
|
||
|
|
||
|
describe '#path_with_namespace' do
|
||
|
it 'appends .wiki to project path' do
|
||
|
expect(wiki.path_with_namespace).to eq 'gitlabhq/gitlabhq.wiki'
|
||
|
end
|
||
|
end
|
||
|
|
||
|
describe '#import_url' do
|
||
|
it 'returns URL of the wiki repository' do
|
||
|
expect(wiki.import_url).to eq 'https://xxx@github.com/gitlabhq/gitlabhq.wiki.git'
|
||
|
end
|
||
|
end
|
||
|
end
|