spec/spec_helper.rb in bukin-0.6.0 vs spec/spec_helper.rb in bukin-0.7.0
- old
+ new
@@ -1,6 +1,7 @@
require 'coveralls'
+require 'vcr'
# This file was generated by the `rspec --init` command. Conventionally, all
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
# Require this file using `require "spec_helper"` to ensure that it is only
# loaded once.
@@ -17,6 +18,15 @@
# --seed 1234
config.order = 'random'
# Enable Coveralls: https://coveralls.io
Coveralls.wear!
+
+ # Enable VCR for mocking web requests
+ config.treat_symbols_as_metadata_keys_with_true_values = true
+end
+
+VCR.configure do |vcr|
+ vcr.cassette_library_dir = 'spec/cassettes'
+ vcr.hook_into :webmock
+ vcr.configure_rspec_metadata!
end