Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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)
Add Comment
Please, Sign In to add comment