Skip to content

Instantly share code, notes, and snippets.

@joshskeen
Created August 29, 2012 16:52
Show Gist options
  • Save joshskeen/3515565 to your computer and use it in GitHub Desktop.
Save joshskeen/3515565 to your computer and use it in GitHub Desktop.
class Location
def geocode
geocoded_address = GeocodedAddress.new(self.full_street_address)
self.latitude = geocoded_address.latitude
self.longitude = geocoded_address.longitude
return self
end
end
let(:location){FactoryGirl.create(:location)}
location.stub(:geocode).and_return(hmmm)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment