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

Use factory_bot to create records in the test suite #297

Open
Tracked by #300
ellnix opened this issue Sep 28, 2023 · 0 comments
Open
Tracked by #300

Use factory_bot to create records in the test suite #297

ellnix opened this issue Sep 28, 2023 · 0 comments

Comments

@ellnix
Copy link
Collaborator

ellnix commented Sep 28, 2023

Description
FactoryBot would remove a lot of the hassle of maintaining ActiveRecord objects used in various tests.

Other
Most of the time when testing we do not care about the particular values of a record's attributes, rather we want to make assertions around its presence and logic. FactoryBot would abstract the creation of valid record objects which would make the test suite easier to maintain.

@ellnix ellnix mentioned this issue Sep 28, 2023
10 tasks
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

No branches or pull requests

1 participant