spec/spec_helper.rb in aptible-resource-0.3.6 vs spec/spec_helper.rb in aptible-resource-0.3.7
- old
+ new
@@ -13,6 +13,11 @@
# Require library up front
require 'aptible/resource'
# Webmock
require 'webmock/rspec'
-WebMock.allow_net_connect!
+WebMock.disable_net_connect!
+
+RSpec.configure do |config|
+ config.before { Aptible::Resource.configuration.reset }
+ config.before { WebMock.reset! }
+end