summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 16:04:35 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-04-01 16:04:35 +0300
commit49b024f5f5b88d406b895f050943db1e75adfa2a (patch)
tree65d9b34ebcaab38ecfc81da0acf0cc8e6c36d900 /spec/support
parentbb06e905efb1722502d71059c21add8cfde851aa (diff)
downloadgitlab-ce-49b024f5f5b88d406b895f050943db1e75adfa2a.tar.gz
Use Gitlab::Git:: for git features across application
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/test_env.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb
index 769405b6ffb..0f81347dd6b 100644
--- a/spec/support/test_env.rb
+++ b/spec/support/test_env.rb
@@ -17,15 +17,18 @@ 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|
+ create_temp_repo(File.join(repos_path, "#{path}.git"))
+ end
+
Gitlab::Shell.any_instance.stub(
- add_repository: ->(path) { create_temp_repo(File.join(repos_path, "#{path}.git")) },
mv_repository: true,
remove_repository: true,
add_key: true,
remove_key: true
)
- fake_satellite = double(
+ fake_satellite = stub(
exists?: true,
destroy: true,
create: true