Skip to content

Instantly share code, notes, and snippets.

View glittershark's full-sized avatar
🏳️‍⚧️

Aspen Smith glittershark

🏳️‍⚧️
View GitHub Profile
@glittershark
glittershark / mock_geocoder.rb
Last active April 12, 2019 09:04 — forked from paveltyk/mock_geocoder.rb
Mock geocoding in Rspec, using the new 'expect' syntax
# 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])