Skip to content

Conversation

jeromedalbert
Copy link

@jeromedalbert jeromedalbert commented Sep 7, 2025

Follow-up to #542.

Remove the unused lib/generators/factory_bot/authentication/templates/users.rb file.

When using the authentication generator, we generate a users.rb file with the following values:

def attributes
[
FixedAttribute.new(:email_address, "[email protected]"),
FixedAttribute.new(:password, "password")
]
end

And this is expected behavior:

And the file "spec/factories/users.rb" should contain exactly:
"""
FactoryBot.define do
factory :user do
email_address { "[email protected]" }
password { "password" }
end
end
"""

So the values of lib/generators/factory_bot/authentication/templates/users.rb are never used. This cleanup PR removes the file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant