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

Sad path to Linkedin OAuth controller #4412

Closed
celsoMartins opened this issue Jan 30, 2017 · 1 comment
Closed

Sad path to Linkedin OAuth controller #4412

celsoMartins opened this issue Jan 30, 2017 · 1 comment

Comments

@celsoMartins
Copy link

celsoMartins commented Jan 30, 2017

Hi. First of all, thanks for the amazing job you guys are doing on devise. This GEM is wonderful.

Second of all, I would like to test when the user clicks in the cancel button in the authorization page:

http://jmp.sh/NgefJdv

and the devise flow goes to the OmniauthCallbacksController

http://jmp.sh/NatJTEa

How could I force the rspec to send the flow to this route?

this is the scenario I'm trying to test:

    context 'when the user deny the access' do
      it 'redirects to the new login session' do
        get :linkedin
        expect(response).to redirect_to new_user_session_path
      end
    end

Thanks in advance.

@georgeguimaraes
Copy link
Contributor

Thanks Celso for the compliments! ❤️

Please use the mailing list or StackOverflow for questions/help, where a wider community will be able to help you. We reserve the issues tracker for issues only.

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

No branches or pull requests

2 participants