Skip to content

Commit

Permalink
spec(auth0): add login_hint not_to in other specs
Browse files Browse the repository at this point in the history
  • Loading branch information
Radamés Roriz committed Mar 2, 2021
1 parent a909e88 commit 7572098
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/omniauth/strategies/auth0_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@
expect(redirect_url).not_to have_query('connection_scope')
expect(redirect_url).not_to have_query('prompt')
expect(redirect_url).not_to have_query('screen_hint')
expect(redirect_url).not_to have_query('login_hint')
end

it 'redirects to hosted login page' do
Expand All @@ -107,6 +108,7 @@
expect(redirect_url).not_to have_query('connection_scope')
expect(redirect_url).not_to have_query('prompt')
expect(redirect_url).not_to have_query('screen_hint')
expect(redirect_url).not_to have_query('login_hint')
end

it 'redirects to the hosted login page with connection_scope' do
Expand All @@ -130,6 +132,7 @@
expect(redirect_url).to have_query('prompt', 'login')
expect(redirect_url).not_to have_query('auth0Client')
expect(redirect_url).not_to have_query('connection')
expect(redirect_url).not_to have_query('login_hint')
end

it 'redirects to hosted login page with screen_hint=signup' do
Expand All @@ -144,6 +147,7 @@
expect(redirect_url).to have_query('screen_hint', 'signup')
expect(redirect_url).not_to have_query('auth0Client')
expect(redirect_url).not_to have_query('connection')
expect(redirect_url).not_to have_query('login_hint')
end

it 'redirects to hosted login page with login_hint=example@mail.com' do
Expand Down

0 comments on commit 7572098

Please sign in to comment.