Skip to content

Instantly share code, notes, and snippets.

@namxam
Forked from stephanpavlovic/gist:4259284
Created December 11, 2012 15:26
Show Gist options
  • Save namxam/4259327 to your computer and use it in GitHub Desktop.
Save namxam/4259327 to your computer and use it in GitHub Desktop.
domain spec
#require 'spec_helper'
#require_relative '../../../app/domain/geocoder_wrapper'
require 'rspec/autorun'
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
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment