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

Fix :as option in passwordless_for #174

Merged
merged 6 commits into from
Nov 7, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use tableize
  • Loading branch information
mikker committed Nov 7, 2023
commit 1c7cf0df9e120af722dd06a2e6fe8c0c3877396a
8 changes: 4 additions & 4 deletions lib/passwordless/test_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def passwordless_sign_out(cls = nil)
controller: "passwordless/sessions",
action: "destroy",
authenticatable: cls.model_name.singular,
resource: cls.model_name.plural
resource: cls.model_name.to_s.tableize
}
)
delete(dest)
Expand All @@ -25,7 +25,7 @@ def passwordless_sign_in(resource)
id: session.id,
token: session.token,
authenticatable: cls.model_name.singular,
resource: cls.model_name.plural
resource: cls.model_name.to_s.tableize
}
)
get(magic_link)
Expand All @@ -42,7 +42,7 @@ def passwordless_sign_out(cls = nil)
controller: "passwordless/sessions",
action: "destroy",
authenticatable: cls.model_name.singular,
resource: cls.model_name.plural
resource: cls.model_name.to_s.tableize
}
)
)
Expand All @@ -58,7 +58,7 @@ def passwordless_sign_in(resource)
id: session.id,
token: session.token,
authenticatable: cls.model_name.singular,
resource: cls.model_name.plural
resource: cls.model_name.to_s.tableize
}
)
visit(magic_link)
Expand Down