Sha256: 9cbec7eb32ce1572567563ec620b483c14c2feebeb81db7e5b86a09ee15822e9

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

require 'bundler/setup'
APP_ENV = 'test'
Bundler.require(:default, APP_ENV)

require 'bit_wallet'
require 'ostruct'
require 'active_support/core_ext/hash/indifferent_access'
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]

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

  config.before(:each) do
    BitWallet.config.min_conf = 0
  end

  config.order = "random"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bit_wallet-0.6.1 spec/spec_helper.rb
bit_wallet-0.6.0 spec/spec_helper.rb
bit_wallet-0.5.0 spec/spec_helper.rb