Make Development::Seeder testable #1348
louis-antonopoulos
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Following up on 1288: Introduce development:db:seed and development:db:seed:replant tasks, there are a couple small changes that could improve Development::Seeder.load_seeds.
This is where I landed for
ReadySetGo:Improvements:
Development::Seederbecomes testable. You can do things like this:Rubocop recommends raising some kind of error, not just an open string
The early return eliminates the nesting of the conditional with an early return (also a Rubocop thing, but one I love)
Beta Was this translation helpful? Give feedback.
All reactions