summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-14 16:00:36 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-08-14 16:04:17 +0200
commit4e4866f2559262b3c858de15890eb864f18eeca8 (patch)
tree6a55206eeb83fcd815ffe995f5646f260c2c01fd /spec
parentbacad39ef984b99520f8d2a7921acd5c8bdab1ef (diff)
downloadgitlab-ce-4e4866f2559262b3c858de15890eb864f18eeca8.tar.gz
Refactor pre/post receive commit services into one class
Diffstat (limited to 'spec')
-rw-r--r--spec/support/test_env.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/test_env.rb b/spec/support/test_env.rb
index 3a678db2dfd..3eab74ba986 100644
--- a/spec/support/test_env.rb
+++ b/spec/support/test_env.rb
@@ -58,7 +58,7 @@ module TestEnv
end
def disable_pre_receive
- allow_any_instance_of(PreCommitService).to receive(:execute).and_return(true)
+ allow_any_instance_of(Gitlab::Git::Hook).to receive(:trigger).and_return(true)
end
# Clean /tmp/tests