Skip to content

Instantly share code, notes, and snippets.

@stephanpavlovic
Created December 11, 2012 15:22
Show Gist options
  • Save stephanpavlovic/4259284 to your computer and use it in GitHub Desktop.
Save stephanpavlovic/4259284 to your computer and use it in GitHub Desktop.
domain spec
require 'spec_helper'
require_relative '../../../app/domain/geocoder_wrapper'
describe 'GeocoderWrapper' do
describe '.geocode' do
it 'geocodes'
end
describe '.distance' do
it "calculates nothing if params not present" do
expect(0).to eq(0)
end
end
end
class GeocodeWrapper
def self.geocode(name)
0
#Geocoder.search(name)
end
def self.distance(start_lat, start_lng, destination_lat, destination_lng)
0
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment