Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
9011a322
Commit
9011a322
authored
Aug 14, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable pre-receive check in test env
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
c8614cbb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
spec/support/test_env.rb
spec/support/test_env.rb
+7
-0
No files found.
spec/support/test_env.rb
View file @
9011a322
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment