Hey,
I've got this Authentication model which is :omniauthable.
In my app, I'm using the url helper authentication_omniauth_authorize_path(:facebook) and it works fine!
In my acceptance tests though, I get...
No route matches [GET] "/authentications/auth/facebook"
...when I'm clicking the link.
Do I need to somehow set these env variables?
request.env["devise.mapping"] = Devise.mappings[:user]
request.env["omniauth.auth"] = OmniAuth.config.mock_auth[:twitter]
If so, how, since I dont have access to the request in acceptance tests, I think.
Any ideas on what I'm missing?
Thanks
Once you have enabled test mode, all requests to OmniAuth will be short circuited to use the mock authentication hash as described below. A request to/auth/providerwill redirect immediately to/auth/provider/callback