spec/spec_helper.rb in PageRankr-4.4.1 vs spec/spec_helper.rb in PageRankr-4.6.0
- old
+ new
@@ -1,24 +1,18 @@
require File.join(File.dirname(__FILE__), '..', 'lib', 'page_rankr')
require 'rspec'
require 'fuubar'
require 'vcr'
+require 'webmock'
+require 'pry'
+require 'support/custom_matchers'
+WebMock.allow_net_connect!
+
VCR.configure do |c|
c.cassette_library_dir = './spec/fixtures/vcr_cassettes'
- c.hook_into :fakeweb
- c.default_cassette_options = {
- :record => :once,
- :match_requests_on => [
- :method,
- VCR.request_matchers.uri_without_param(
- :cli,
- :dat,
- :client,
- :features
- )
- ]
- }
+ c.hook_into :webmock
+ c.configure_rspec_metadata!
end
RSpec.configure do |c|
c.formatter = Fuubar
c.color = true