Skip to content

Commit

Permalink
Use tableize
Browse files Browse the repository at this point in the history
  • Loading branch information
mikker committed Nov 7, 2023
1 parent 6e89a62 commit 78229b1
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 78229b1

Please sign in to comment.