Sha256: ca246574851930d518a9e5c0084263be2641a5023f10ca33f07c3631871fec71

Contents?: true

Size: 508 Bytes

Versions: 2

Compression:

Stored size: 508 Bytes

Contents

$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
$LOAD_PATH.unshift(File.dirname(__FILE__))
require 'rspec'
require 'geonames_api'

RSpec.configure do |config|
  if ENV['GEONAMES_USER']
    GeoNamesAPI.username = ENV['GEONAMES_USER']
  else
    puts "Enter your GeoNames WebServices username for running functional specs (press enter to just use default)"
    name = $stdin.gets.chomp
    GeoNamesAPI.username = name if name.present?
  end
  GeoNamesAPI.logger = Logger.new("test.log")
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
geonames_api-0.1.1 spec/spec_helper.rb
geonames_api-0.1.0 spec/spec_helper.rb