summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorAriejan de Vroom <ariejan@ariejan.net>2011-12-14 17:38:52 +0100
committerAriejan de Vroom <ariejan@ariejan.net>2011-12-14 17:38:52 +0100
commitedab46e9fa5f568b1423c0021e81d30453d7dc1e (patch)
tree8efba8b082a534e1a069f4566d55d6117951e6ba /spec/spec_helper.rb
parent56fc53e8d870b70ca66332daeb6da39ab0eb5ce7 (diff)
downloadgitlab-ce-edab46e9fa5f568b1423c0021e81d30453d7dc1e.tar.gz
Added web hooks functionality
This commit includes: * Projects can have zero or more WebHooks. * The PostReceive job will ask a project to execute any web hooks defined for that project. * WebHook has a URL, we post Github-compatible JSON to that URL. * Failure to execute a WebHook will be silently ignored.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 05fd6ca7d9a..f24496ec92c 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -8,6 +8,7 @@ require 'rspec/rails'
require 'capybara/rails'
require 'capybara/rspec'
require 'capybara/dsl'
+require 'webmock/rspec'
require 'factories'
require 'monkeypatch'
@@ -48,6 +49,8 @@ RSpec.configure do |config|
end
DatabaseCleaner.start
+
+ WebMock.disable_net_connect!(allow_localhost: true)
end
config.after do