Sha256: c045f52a5e38a1c57ff229612902bb572b2dc33414794dc45e9b5e9f95037fa6

Contents?: true

Size: 575 Bytes

Versions: 1

Compression:

Stored size: 575 Bytes

Contents

require 'spec_helper'

FakeWeb.allow_net_connect = true

unless File.exists?(File.join(File.dirname(__FILE__), 'remote.yml'))
  STDERR.puts "\nERROR: Make sure a remote.yml file exists at ./spec/remote/remote.yml\n\n"
  abort
end

RSpec.configure do |config|
  config.before(:all) do
    Chargify.configure do |c|
      c.api_key = remote_configuration['api_key']
      c.site = remote_configuration['site']
    end
  end
end

private

def remote_configuration
  @remote_configuration ||= YAML.load_file(File.expand_path(File.join(File.dirname(__FILE__), 'remote.yml')))
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chargify_api_ares-0.6.0 spec/remote/remote_helper.rb