Displaying 1 result from an estimated 1 matches for "parmenti".
Did you mean:
parenti
2007 Dec 01
0
mock feed
...lng = (section/"coordinates").text.split('','')
self.town = (section/"LocalityName").text
self.address_1 = (section/"ThoroughfareName").text
end
In my spec for the address model I have as a helper:
def mock_feed
directions = "q=71+av+Parmentier,+75011,+FRANCE&output=xml&key=mykey"
xml = File.read(RAILS_ROOT + "/spec/fixtures/feeds/75001.xml")
@address.should_receive(:open).exactly(1).times.
with("http://maps.google.com/maps/geo?#{directions}").
and_return(xml)
end
.......................
de...