Sha256: 5476b25bf89cd5b1861d90f6e8ce6f8bf6c41ee9fee794493273e0e7151fec6e

Contents?: true

Size: 671 Bytes

Versions: 1

Compression:

Stored size: 671 Bytes

Contents

require 'pry'
require 'pry-nav'
require "highrise_mapper"
require 'rspec'
require 'rspec/mocks'
require "pathname"

SPECDIR = Pathname.new(File.dirname(__FILE__))
TMPDIR = SPECDIR.join("tmp")

Dir[File.dirname(__FILE__) + "/support/**/*.rb"].each {|r| require r}

RSpec.configure do |config|
  config.before { FileUtils.mkdir_p(TMPDIR) }
end

def highrise_env_available?
  if ENV['HIGHRISE_TOKEN']!=nil && ENV['HIGHRISE_BASE_URL']!=nil && ENV['HIGHRISE_TOKEN']!='' && ENV['HIGHRISE_BASE_URL']!=''
    return true
  else
    puts 'INFO: No Highrise TOKEN/BASEURL environment variable defined, tests regarding HTTP communication will be ignored.'
    return false
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
highrise_mapper-0.0.3 spec/spec_helper.rb