require 'bundler/setup' require 'webmock/rspec' require 'vcr' require_relative '../lib/medlink.rb' VCR.configure do |c| c.cassette_library_dir = 'spec/cassettes' c.hook_into :webmock c.allow_http_connections_when_no_cassette = false c.before_record do |i| i.response.body.force_encoding('UTF-8') end end TOKEN = "HKJbahe6Gehbrg2" RSpec.configure do |c| c.before(:each) do @api = Medlink::API.new(TOKEN) end end