Skip to content

Commit

Permalink
Merge remote-tracking branch 'b/bug_callbackpath_npe' into feature/gi…
Browse files Browse the repository at this point in the history
…thub_actions
  • Loading branch information
nov committed Sep 26, 2022
2 parents 2df16f8 + c2c4640 commit 6f5650e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/omniauth/strategies/apple_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,13 @@

describe '#callback_path' do
it 'has the correct default callback path' do
subject.authorize_params # initializes env, session (for test_mode) and populates 'nonce', 'state'
expect(subject.callback_path).to eq('/auth/apple/callback')
end

it 'should set the callback_path parameter if present' do
options.merge!(callback_path: '/auth/foo/callback')
subject.authorize_params # initializes env, session (for test_mode) and populates 'nonce', 'state'
expect(subject.callback_path).to eq('/auth/foo/callback')
end
end
Expand Down

0 comments on commit 6f5650e

Please sign in to comment.