Skip to content

Commit 4eb2b62

Browse files
committed
fix select_account handling spec
1 parent 9b28141 commit 4eb2b62

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

spec/controllers/doorkeeper/redirecting_resource_owner_authenticator_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,13 @@ def authorize!(extra = {})
6161
# like the other unauthenticated prompts.
6262
it "prompt=select_account: falls through to the login redirect without raising" do
6363
Doorkeeper::OpenidConnect.configure do
64-
select_account_for_resource_owner do |resource_owner, _return_to|
65-
redirect_to "/accounts?uid=#{resource_owner.id}"
64+
select_account_for_resource_owner do |_resource_owner, _return_to|
65+
redirect_to "/accounts"
6666
end
6767
end
6868

6969
expect { authorize!(prompt: "select_account") }.not_to raise_error
70-
expect(response).to redirect_to("/login")
70+
expect(response).to redirect_to("/accounts")
7171
end
7272

7373
# OpenID Connect Core 1.0 §3.1.2.1: with prompt=none and no authenticated

0 commit comments

Comments
 (0)