Hi all,

Just a quick question to ask if anyone's had any luck integration
testing Omniauth with Devise, when the User is in a logged-in state.

I've got Omniauth's test mode on, and appropriate OAuth providers
stubbed out thanks to Omniauth's testing support. Unfortunately, said
testing support is replacing my session (i.e. logged-in user) with
it's own session class, so I get bounced out of the app I'm testing
when it redirects to the Omniauth callback and notices "I'm not logged
in".

Haven't found anything as yet that suggests I can easily get around
this, so any advice is welcome! I think the alternative would be to
move this into a controller spec, or to try and get Capybara right
through an OAuth log-in-and-grant-permissions interface on the site of
the third-party OAuth provider - and I can see that being really
messy.

Cheers,

Josh

-- 
You received this message because you are subscribed to the Google Groups 
"WellRailed" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/wellrailed?hl=en.

Reply via email to