Skip to content

Commit

Permalink
Work around a bug in WebMock.
Browse files Browse the repository at this point in the history
  • Loading branch information
myronmarston committed Jun 15, 2010
1 parent 6b54846 commit 1bb664d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/vcr/http_stubbing_adapters/webmock.rb
Expand Up @@ -85,4 +85,9 @@ def message
end
end
end
end
end

# TODO: remove this once a new version of WebMock has been released with this fixed.
if defined?(HTTPClient) && !defined?(HTTPClient::NetConnectNotAllowedError)
HTTPClient::NetConnectNotAllowedError = WebMock::NetConnectNotAllowedError
end

0 comments on commit 1bb664d

Please sign in to comment.