Sha256: 814228edcf5e05d4024377737a14e819c895c7c1c05caadb9460e6e34612f0f5

Contents?: true

Size: 674 Bytes

Versions: 11

Compression:

Stored size: 674 Bytes

Contents

if ENV['COVERAGE'] == '1'
  require 'simplecov'
  SimpleCov.start do
	add_filter "/test/"
  end
end
require 'minitest/autorun'
require 'minitest/pride'

require_relative '../lib/mxhero-api'

# Load fixtures
Dir["#{File.dirname(__FILE__)}/fixtures/**/*.rb"].each { |rb| require rb }

TEST_API_DOMAIN   = ENV['TEST_API_DOMAIN'] || 'tesla.com'
TEST_API_URL      = ENV['TEST_API_URL'] || 'http://test.mxhero.com/webapi/api/v1'
TEST_API_USER     = 'admin'
TEST_API_PASSWORD = ENV['TEST_API_PASSWORD'] || 'password' 

require 'vcr'

VCR.configure do |c|
  c.cassette_library_dir = 'test/fixtures/api'
  c.allow_http_connections_when_no_cassette = true
  c.hook_into :webmock
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mxhero-api-1.2.9 test/helper.rb
mxhero-api-1.2.8 test/helper.rb
mxhero-api-1.2.7 test/helper.rb
mxhero-api-1.2.6 test/helper.rb
mxhero-api-1.2.5 test/helper.rb
mxhero-api-1.2.4 test/helper.rb
mxhero-api-1.2.3 test/helper.rb
mxhero-api-1.2.2 test/helper.rb
mxhero-api-1.2.1 test/helper.rb
mxhero-api-1.2.0 test/helper.rb
mxhero-api-1.1.4 test/helper.rb