Displaying 1 result from an estimated 1 matches for "addressspechelper".
2007 Dec 01
0
mock feed
...= 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
.......................
describe Address, "fetch and geocode" do
include AddressSpecHelper
before do
@address = Address.new
mock_feed
@address.attributes = valid_address_attributes
@address.save
end
it "should populate town and address 1" do
@address.town.should eql("Paris")
@address.address_1.should eql("71, Avenue Parmentier"...