Skip to content

Instantly share code, notes, and snippets.

View nicolasrouanne's full-sized avatar

Nicolas Rouanne nicolasrouanne

  • Software Engineer
  • Marseille, France
View GitHub Profile
@nicolasrouanne
nicolasrouanne / mock_geocoder.rb
Last active March 5, 2018 09:48 — forked from glittershark/mock_geocoder.rb
Mock geocoding in Rspec, with _specifics for `Google Geocoding API`
# In spec_helper:
# RSpec.configure do |config|
# ...
# config.include(MockGeocoder)
# end
#
# In your tests:
# it 'mock geocoding' do
# # You may pass additional params to override defaults
# # (i.e. :coordinates => [10, 20])