begin
require 'spec'
rescue LoadError
require 'rubygems'
gem 'rspec'
require 'spec'
end
require 'time'
XML_ERROR_RESPONSE = <<-RESPONSE
RESPONSE
XML_LOCATION_RESPONSE = <<-RESPONSE
38.5351715088 -121.7948684692 38.575668335 -121.6747894287
3
city
2008-01-22T14:23:11-08:00
Davis, CA
u4L9ZOObApTdx1q3
38.3131217957 -122.4230804443 38.9261016846 -121.5012969971
4
region
2008-01-22T18:45:26-08:00
Yolo County, California
YUYMh9CbBJ61mgFe
32.5342788696 -124.4150238037 42.0093803406 -114.1308135986
5
state
2008-01-22T18:45:26-08:00
California
SVrAMtCbAphCLAtP
18.9108390808 -167.2764129639 72.8960571289 -66.6879425049
6
country
2008-01-22T18:45:26-08:00
United States
4KO02SibApitvSBieQ
RESPONSE
XML_SUCCESS_RESPONSE = <<-RESPONSE
RESPONSE
XML_LOCATION_CHUNK = <<-RESPONSE
38.5351715088 -121.7948684692 38.575668335 -121.6747894287
3
city
2008-01-22T14:23:11-08:00
Davis, CA
u4L9ZOObApTdx1q3
RESPONSE
XML_QUERY_LOCATION_CHUNK = <<-RESPONSE
111541
32.7093315125 -117.1650772095
0
exact
2008-03-03T09:05:16-08:00
333 W Harbor Dr, San Diego, CA
"q=333%20W%20Harbor%20Dr,%20San%20Diego,%20CA"
RESPONSE
XML_EXACT_LOCATION_CHUNK = <<-RESPONSE
38.5351715088 -121.7948684692
RESPONSE
XML_LOOKUP_RESPONSE = <<-RESPONSE
q=30022
Alpharetta, GA 30022
IrhZMHuYA5s1fFi4Qw
Hannover, Region Hannover, Deutschland
88Hctc2bBZlhvlwbUg
Nîmes, Gard, France
Sut8q82bBZkF0s1eTg
Ceggia, Venezia, Italia
s9ulRieYA5TkNK9otw
Comitán de Domínguez, Comitan de Dominguez, México
.51HvYKbBZnSAeNHWw
Platanos Aitoloakarnanias, Etolia Kai Akarnania, Greece
CmfJ2H.YA5QKpS56HQ
Kraków, Kraków, Polska
9bYc0l.bA5vPTGscQg
Nakuru, Kenya
VDprypWYA5sujnZphA
Fez, Al Magreb
BxOaGgSYA5R40Nm1RA
RESPONSE
XML_WITHIN_RESPONSE = <<-RESPONSE
111541
32.7093315125 -117.1650772095
0
exact
2008-03-03T09:05:16-08:00
333 W Harbor Dr, San Diego, CA
111551
32.6916618347 -117.2174377441 32.744140625 -117.1458892822
1
postal
2008-03-03T09:05:16-08:00
San Diego, CA 92101
NpiXqwmYA5viX3K3Ew
12796255
111561
32.5349388123 -117.2884292603 33.1128082275 -116.9142913818
3
city
2008-03-03T09:05:16-08:00
San Diego, CA
Nm4O.DebBZTYKUsu
2487889
111571
32.5342788696 -124.4150238037 42.0093803406 -114.1308135986
5
state
2008-03-03T09:05:16-08:00
California
SVrAMtCbAphCLAtP
2347563
111581
18.9108390808 -167.2764129639 72.8960571289 -66.6879425049
6
country
2008-03-03T09:05:16-08:00
United States
4KO02SibApitvSBieQ
23424977
111541
32.7093315125 -117.1650772095
0
exact
2008-03-03T09:05:16-08:00
333 W Harbor Dr, San Diego, CA
111551
32.6916618347 -117.2174377441 32.744140625 -117.1458892822
1
postal
2008-03-03T09:05:16-08:00
San Diego, CA 92101
NpiXqwmYA5viX3K3Ew
12796255
111561
32.5349388123 -117.2884292603 33.1128082275 -116.9142913818
3
city
2008-03-03T09:05:16-08:00
San Diego, CA
Nm4O.DebBZTYKUsu
2487889
111571
32.5342788696 -124.4150238037 42.0093803406 -114.1308135986
5
state
2008-03-03T09:05:16-08:00
California
SVrAMtCbAphCLAtP
2347563
111581
18.9108390808 -167.2764129639 72.8960571289 -66.6879425049
6
country
2008-03-03T09:05:16-08:00
United States
4KO02SibApitvSBieQ
23424977
RESPONSE
XML_RECENT_RESPONSE = <<-RESPONSE
RESPONSE
require File.dirname(__FILE__) + '/../lib/fireeagle'