Disable pre-receive check in test env
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
c8614cbbe7
commit
9011a32234
1 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,9 @@ module TestEnv
|
|||
# Setup GitLab shell for test instance
|
||||
setup_gitlab_shell
|
||||
|
||||
# Skip pre-receive check so we can use web editor
|
||||
disable_pre_receive
|
||||
|
||||
# Create repository for FactoryGirl.create(:project)
|
||||
setup_factory_repo
|
||||
|
||||
|
@ -57,6 +60,10 @@ module TestEnv
|
|||
and_call_original
|
||||
end
|
||||
|
||||
def disable_pre_receive
|
||||
allow_any_instance_of(PreCommitService).to receive(:execute).and_return(true)
|
||||
end
|
||||
|
||||
# Clean /tmp/tests
|
||||
#
|
||||
# Keeps gitlab-shell and gitlab-test
|
||||
|
|
Loading…
Reference in a new issue