Skip to content

Commit

Permalink
Fix unrelated test
Browse files Browse the repository at this point in the history
  • Loading branch information
mikker committed May 28, 2024
1 parent bd74d27 commit 0c40f6f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/controllers/passwordless/sessions_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ class << User
test("PATCH /:passwordless_for/sign_in/:id -> SUCCESS / callable success path with 1 arg") do
passwordless_session = create_pwless_session(token: "hi")

with_config(success_redirect_path: lambda { |user| "/#{user.id}" }) do
with_config(success_redirect_path: lambda { |user| "/users/#{user.id}" }) do
patch("/users/sign_in/#{passwordless_session.identifier}", params: {passwordless: {token: "hi"}})
end

follow_redirect!
assert_equal "/#{passwordless_session.authenticatable.id}", path
assert_equal "/users/#{passwordless_session.authenticatable.id}", path
end

test("PATCH /:passwordless_for/sign_in/:id -> ERROR") do
Expand Down

0 comments on commit 0c40f6f

Please sign in to comment.