Sha256: 7ce6c5cd3e64ccf8e756416394cf53df4ce765c0454bb70b4727469088c7c246
Contents?: true
Size: 585 Bytes
Versions: 1
Compression:
Stored size: 585 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") GeoNamesAPI.retries = 10 GeoNamesAPI.max_sleep_time_between_retries = 60 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
geonames_api-0.1.2 | spec/spec_helper.rb |