Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (13 sloc) 0.365 kB
module WebMockMacros
def without_webmock_callbacks
before(:all) do
@original_webmock_callbacks = ::WebMock::CallbackRegistry.callbacks
::WebMock::CallbackRegistry.reset
end
after(:all) do
@original_webmock_callbacks.each do |cb|
::WebMock::CallbackRegistry.add_callback(cb[:options], cb[:block])
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.