From 78229b1a2182e1a9b046039d76707c722f6be59d Mon Sep 17 00:00:00 2001 From: Mikkel Malmberg Date: Tue, 7 Nov 2023 10:10:22 +0100 Subject: [PATCH] Use tableize --- lib/passwordless/test_helpers.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/passwordless/test_helpers.rb b/lib/passwordless/test_helpers.rb index 71f0540..813034d 100644 --- a/lib/passwordless/test_helpers.rb +++ b/lib/passwordless/test_helpers.rb @@ -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) @@ -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) @@ -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 } ) ) @@ -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)