spec/spec_helper.rb in geonames_api-0.1.2 vs spec/spec_helper.rb in geonames_api-0.1.3
- old
+ new
@@ -9,9 +9,9 @@
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.logger = ENV['CI'] ? Logger.new(STDERR) : Logger.new("test.log")
GeoNamesAPI.retries = 10
GeoNamesAPI.max_sleep_time_between_retries = 60
end