Skip to content
Browse files

Revert "Merge pull request #178 from HendrikW/master"

This reverts commit 36aff46, reversing
changes made to 1e61a8c.
  • Loading branch information...
1 parent a240801 commit 574cd18a44fdf8af430e9c50d9b708ce91983155 @bblimke committed Jul 24, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 lib/webmock/http_lib_adapters/net_http.rb
View
7 lib/webmock/http_lib_adapters/net_http.rb
@@ -87,9 +87,10 @@ def request_with_webmock(request, body = nil, &block)
end
response = if (started? && !WebMock::Config.instance.net_http_connect_on_start) || !started?
@started = false #otherwise start_with_connect wouldn't execute and connect
- start_with_connect
- response = request_without_webmock(request, nil)
- after_request.call(response)
+ start_with_connect {
+ response = request_without_webmock(request, nil)
+ after_request.call(response)
+ }
else
response = request_without_webmock(request, nil)
after_request.call(response)

0 comments on commit 574cd18

Please sign in to comment.
Something went wrong with that request. Please try again.