From 4e4866f2559262b3c858de15890eb864f18eeca8 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Fri, 14 Aug 2015 16:00:36 +0200 Subject: Refactor pre/post receive commit services into one class --- spec/support/test_env.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/support') 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 -- cgit v1.2.3