Merge branch 'use_gollum_wikis' of https://github.com/DanKnox/gitlabhq into DanKnox-use_gollum_wikis
Conflicts: app/views/layouts/project_resource.html.haml app/views/wikis/edit.html.haml app/views/wikis/pages.html.haml app/views/wikis/show.html.haml spec/features/gitlab_flavored_markdown_spec.rb
This commit is contained in:
commit
71ab011a17
30 changed files with 1252 additions and 86 deletions
|
@ -37,6 +37,9 @@ DatabaseCleaner.strategy = :truncation
|
|||
Spinach.hooks.before_scenario do
|
||||
# Use tmp dir for FS manipulations
|
||||
Gitlab.config.gitlab_shell.stub(repos_path: Rails.root.join('tmp', 'test-git-base-path'))
|
||||
Gitlab::Shell.any_instance.stub(:add_repository) do |path|
|
||||
create_temp_repo("#{Rails.root}/tmp/test-git-base-path/#{path}.git")
|
||||
end
|
||||
FileUtils.rm_rf Gitlab.config.gitlab_shell.repos_path
|
||||
FileUtils.mkdir_p Gitlab.config.gitlab_shell.repos_path
|
||||
DatabaseCleaner.start
|
||||
|
@ -51,3 +54,9 @@ Spinach.hooks.before_run do
|
|||
|
||||
include FactoryGirl::Syntax::Methods
|
||||
end
|
||||
|
||||
def create_temp_repo(path)
|
||||
FileUtils.mkdir_p path
|
||||
command = "git init --quiet --bare #{path};"
|
||||
system(command)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue