Hi all,
I'm trying to test integration with Facebook and Twitter using the
OmniAuth branch of Devise using Cucumber.
Here's what I have so far:
https://gist.github.com/668416
In the past, I've tested third-party integration by mocking remote
responses with FakeWeb. What I want to do is return a series of
different JSON responses to test different results from Facebook (eg
missing email address, missing username)
However it looks like the Faraday or Devise test mode is abstracting
that away at a higher level.
Has anyone tried this or been able to get it working?
Cheers.