spec/spec_helper.rb in sms_broker-1.0.0 vs spec/spec_helper.rb in sms_broker-1.0.2

- old
+ new

@@ -1,29 +1,23 @@ require 'pry' -require 'yaml' +require 'vcr' require 'simplecov' require 'codeclimate-test-reporter' +require 'sms_broker' +require 'webmock/rspec' +require 'support/nexmo_helpers' SimpleCov.start do formatter SimpleCov::Formatter::MultiFormatter.new [ SimpleCov::Formatter::HTMLFormatter, CodeClimate::TestReporter::Formatter ] end -# load service_keys.yml to ENV -yml_file = File.expand_path('../support/services_keys.yml', __FILE__) - -YAML.load(File.read(yml_file)).each do |key, value| - ENV[key] = value -end - -require 'sms_broker' -require 'webmock/rspec' - -require 'support/nexmo_helpers' - RSpec.configure do |config| - config.include NexmoHelpers +end +VCR.configure do |config| + config.cassette_library_dir = 'spec/support/vcr_cassettes' + config.hook_into :webmock end