From ae149fca92cbfa393b1fdcff206912d6a4d3d2eb Mon Sep 17 00:00:00 2001 From: Edward Tippett Date: Tue, 22 Sep 2026 23:05:28 +0700 Subject: [PATCH] Hash fixture passwords at minimum bcrypt cost The fixture calls BCrypt directly, bypassing Rails' test configuration. --- test/fixtures/users.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/fixtures/users.yml b/test/fixtures/users.yml index 39f71a5..a2f8804 100644 --- a/test/fixtures/users.yml +++ b/test/fixtures/users.yml @@ -1,4 +1,4 @@ -<% password_digest = BCrypt::Password.create("secret123456") %> +<% password_digest = BCrypt::Password.create("secret123456", cost: BCrypt::Engine::MIN_COST) %> david: name: David