spec/spec_helper.rb in bit_wallet-0.1.0 vs spec/spec_helper.rb in bit_wallet-0.1.1

- old
+ new

@@ -8,18 +8,26 @@ require 'active_support/core_ext/hash/slice' require 'pry' require 'factory_girl' require_relative 'factories' require 'bitcoin_testnet' +require 'vcr' +require 'webmock' Config = {} yaml_config_file = File.open(File.join(File.dirname(__FILE__), 'config.yml')) yaml_config = YAML.load(yaml_config_file).with_indifferent_access Config[:username] = yaml_config[:rpcuser] Config[:port] = yaml_config[:rpcport] Config[:password] = yaml_config[:rpcpassword] -BitcoinTestnet.configure_rspec! +VCR.configure do |c| + c.cassette_library_dir = 'spec/fixtures/vcr_cassettes' + c.hook_into :webmock + c.configure_rspec_metadata! +end + +BitcoinTestnet.configure_with_rspec_and_vcr! BitcoinTestnet.dir = File.join(File.dirname(__FILE__), 'testnet') RSpec.configure do |config| config.include FactoryGirl::Syntax::Methods