Commit 9649f938 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix tests for web editor

parent 9011a322
...@@ -28,5 +28,9 @@ Spinach.hooks.before_run do ...@@ -28,5 +28,9 @@ Spinach.hooks.before_run do
RSpec::Mocks.setup RSpec::Mocks.setup
TestEnv.init(mailer: false) TestEnv.init(mailer: false)
# skip pre-receive hook check so we can use
# web editor and merge
TestEnv.disable_pre_receive
include FactoryGirl::Syntax::Methods include FactoryGirl::Syntax::Methods
end end
...@@ -40,9 +40,6 @@ module TestEnv ...@@ -40,9 +40,6 @@ module TestEnv
# Setup GitLab shell for test instance # Setup GitLab shell for test instance
setup_gitlab_shell setup_gitlab_shell
# Skip pre-receive check so we can use web editor
disable_pre_receive
# Create repository for FactoryGirl.create(:project) # Create repository for FactoryGirl.create(:project)
setup_factory_repo setup_factory_repo
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment