Browse files

WebMock.reset_webmock is deprecated in favor of WebMock.reset!

  • Loading branch information...
1 parent 0418416 commit e7a4c0d93e8dc05fd5aa92f51e4ebea4ea50054c @myronmarston committed Nov 11, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 benchmarks/http_stubbing_libraries.rb
  2. +1 −1 spec/spec_helper.rb
View
2 benchmarks/http_stubbing_libraries.rb
@@ -18,7 +18,7 @@ def webmock
WebMock.stub_request(:get, 'http://example.com').to_return(:body => 'Hello')
yield
ensure
- WebMock.reset_webmock
+ WebMock.reset!
end
def perform_benchmark(name)
View
2 spec/spec_helper.rb
@@ -28,7 +28,7 @@
VCR::Config.stub_with :fakeweb
WebMock.allow_net_connect!
- WebMock.reset_webmock
+ WebMock.reset!
FakeWeb.allow_net_connect = true
FakeWeb.clean_registry

0 comments on commit e7a4c0d

Please sign in to comment.