require 'simplecov'
require 'coveralls'


SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

require 'forklift'
require 'rspec'
require 'webmock/rspec'
require 'vcr'
require 'dotenv'

Dotenv.load

#WebMock.disable_net_connect!(:allow => 'coveralls.io')

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
  config.treat_symbols_as_metadata_keys_with_true_values = true
end

VCR.configure do |c|
  c.cassette_library_dir     = 'spec/cassettes'
  c.hook_into :webmock
  c.configure_rspec_metadata!
end

#def fixture_path
#  File.expand_path("../fixtures", __FILE__)
#end
#
#def fixture(file)
#  File.new(fixture_path + '/' + file)
#end
#
#def github_url(url)
#  if url =~ /^http/
#    url
#  elsif @client && @client.authenticated?
#    "https://#{@client.login}:#{@client.password}@api.github.com#{url}"
#  else
#    "https://api.github.com#{url}"
#  end
#end

require 'simplecov'
require 'coveralls'


SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
  SimpleCov::Formatter::HTMLFormatter,
  Coveralls::SimpleCov::Formatter
]
SimpleCov.start

require 'forklift'
require 'rspec'
require 'webmock/rspec'
require 'vcr'
require 'dotenv'

Dotenv.load
ENV["API_KEY"]       ||= "thisisisapikey"
ENV["SHARED_SECRET"] ||= "thisisisisisshared_secret"

#WebMock.disable_net_connect!(:allow => 'coveralls.io')

RSpec.configure do |config|
  config.expect_with :rspec do |c|
    c.syntax = :expect
  end
  config.treat_symbols_as_metadata_keys_with_true_values = true
end

VCR.configure do |c|
  c.cassette_library_dir     = 'spec/cassettes'
  c.hook_into :webmock
  c.configure_rspec_metadata!
end

#def fixture_path
#  File.expand_path("../fixtures", __FILE__)
#end
#
#def fixture(file)
#  File.new(fixture_path + '/' + file)
#end
#
#def github_url(url)
#  if url =~ /^http/
#    url
#  elsif @client && @client.authenticated?
#    "https://#{@client.login}:#{@client.password}@api.github.com#{url}"
#  else
#    "https://api.github.com#{url}"
#  end
#end

Add default API_KEY, SHARED_SECRET for travis ci.
Add default API_KEY, SHARED_SECRET for travis ci.
