Created
December 11, 2012 15:22
-
-
Save stephanpavlovic/4259284 to your computer and use it in GitHub Desktop.
domain spec
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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