Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to stub call to specific service? #1497

Open
nickheniser opened this issue Mar 24, 2021 · 0 comments
Open

Ability to stub call to specific service? #1497

nickheniser opened this issue Mar 24, 2021 · 0 comments

Comments

@nickheniser
Copy link

nickheniser commented Mar 24, 2021

Stubbing is addressed here: https://github.com/alexreisner/geocoder#testing

But I am having problems stubbing a call in my code that looks like:

results = Geocoder.search(self.address lookup: :google)

The default call without specifying the lookup stubs out fine.

Can this be achieved easily? I am pretty new to rails and ruby to know if there is some easy way to configure this?

Thanks!

Also asked on Stack Overflow: https://stackoverflow.com/questions/66832317/how-to-stub-call-in-ruby-geocoder-when-calling-specific-service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant