Sha256: 302e4594f91a34add0a31809de67a520cc4582c3a3bef07827ba9574faedd55a

Contents?: true

Size: 618 Bytes

Versions: 4

Compression:

Stored size: 618 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 = ENV['CI'] ? Logger.new(STDERR) : Logger.new("test.log")
  GeoNamesAPI.retries = 10
  GeoNamesAPI.max_sleep_time_between_retries = 60
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
geonames_api-0.1.6 spec/spec_helper.rb
geonames_api-0.1.5 spec/spec_helper.rb
geonames_api-0.1.4 spec/spec_helper.rb
geonames_api-0.1.3 spec/spec_helper.rb