Skip to content

Commit

Permalink
Ensure webhook URLs are always set to the fake server when testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristandunn committed Feb 13, 2016
1 parent 3ebe757 commit 930a8f6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions spec/support/webhooks.rb
@@ -1,9 +1,3 @@
RSpec.configure do |config|
config.before(:each) do
$events = []
end
end

Thread.new do
# Not explicitly requiring Thin::Server occasionally results in
# Thin::Server.start not being defined.
Expand Down Expand Up @@ -31,4 +25,10 @@ def self.call(environment)
at_exit { thread.exit }
end

PusherFake.configuration.webhooks = ["http://127.0.0.1:8082"]
RSpec.configure do |config|
config.before(:each) do
$events = []

PusherFake.configuration.webhooks = ["http://127.0.0.1:8082"]
end
end

0 comments on commit 930a8f6

Please sign in to comment.