$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'bundler'
require 'bundler/setup'
Bundler.setup(:development)
require 'mailgun'
require_relative 'unit/connection/test_client'

# INSERT YOUR API KEYS HERE
APIKEY = "key"
PUB_APIKEY = "pubkey"
APIHOST = "api.mailgun.net"
APIVERSION = "v2"
SSL= true

$LOAD_PATH.unshift(File.dirname(__FILE__))
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
require 'rubygems'
require 'bundler'
require 'bundler/setup'
Bundler.setup(:development)
require 'mailgun'
require_relative 'unit/connection/test_client'

# INSERT YOUR API KEYS HERE
APIKEY = ENV['MAILGUN_API_KEY']
PUB_APIKEY = ENV['MAILGUN_PUBLIC_KEY']
APIHOST = "api.mailgun.net"
APIVERSION = "v2"
SSL = true

Use environment variables for API keys
Use environment variables for API keys

Since we have to use our own keys to run the tests on this gem, support
using environment variables so we don’t have to edit this file and
remember to revert it back before committing. This way we can run tests
like:

`MAILGUN_API_KEY=abcd MAILGUN_PUBLIC_KEY=1234 bundle exec rspec`
