spec/spec_helper.rb in endpoint_stub-1.1.0 vs spec/spec_helper.rb in endpoint_stub-1.4.5
- old
+ new
@@ -1,10 +1,17 @@
require 'endpoint_stub'
require 'endpoint/stub'
require 'net/http'
require 'active_resource'
+$VERBOSE = nil
RSpec.configure do |config|
+ EndpointStub.activate!
+
+ config.after :each do
+ Endpoint::Stub.clear_all_records!
+ end
+
# The settings below are suggested to provide a good initial experience
# with RSpec, but feel free to customize to your heart's content.
=begin
# These two settings work together to allow you to limit a spec run
# to individual examples or groups you care about by tagging them with