summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 17:27:44 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 17:27:44 +0300
commit9a26e9a0d634c8bb796f0b08f6397d1e343bd4be (patch)
tree83ab649038540b07074cf34ce94eedc21386b84f /spec/support
parent541d89941014137762dff696c83b3357eba8efeb (diff)
downloadgitlab-ce-9a26e9a0d634c8bb796f0b08f6397d1e343bd4be.tar.gz
Dont init repo on every create(:repo)
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/test_env.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb
index 0f81347dd6b..19be8029a98 100644
--- a/spec/support/test_env.rb
+++ b/spec/support/test_env.rb
@@ -17,11 +17,12 @@ module TestEnv
repos_path = Rails.root.join('tmp', 'test-git-base-path')
Gitlab.config.gitlab_shell.stub(repos_path: repos_path)
- Gitlab::Shell.any_instance.stub(:add_repository) do |path|
+ GollumWiki.any_instance.stub(:init_repo) do |path|
create_temp_repo(File.join(repos_path, "#{path}.git"))
end
Gitlab::Shell.any_instance.stub(
+ add_repository: true,
mv_repository: true,
remove_repository: true,
add_key: true,