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

Any helpers to ueberauth callbacks in a Phoenix application? #62

Closed
anildigital opened this issue Sep 24, 2017 · 2 comments
Closed

Any helpers to ueberauth callbacks in a Phoenix application? #62

anildigital opened this issue Sep 24, 2017 · 2 comments

Comments

@anildigital
Copy link

Hi,

I am working on a Phoenix application where I am using Ueberauth Slack.
I wanted to write controller tests for callbacks

def callback(%{assigns: %{ueberauth_failure: _fails}} = conn, _params) do.

...

def callback(%{assigns: %{ueberauth_auth: auth}} = conn, _params) do

Any helpers to set assigns properly while testing?

Thanks!

@doomspork
Copy link
Member

Sorry @anildigital we don't have a testing harness yet. The best solution I've found so far is to rely on bypass. If you have any suggestions for how we could make testing easier we're all ears!

@Papipo
Copy link

Papipo commented Mar 22, 2018

Where can I see an example of that? Thanks!

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

No branches or pull requests

3 participants