You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I spoke with some people today who may be interested in using Oaken, and these ideas came up:
Use something like test/seeds/accounts/business/<traits_files>.rb to set up something akin to FactoryBot's traits, could also be done via helper methods ala def accounts.with_stripe_account.
Use something like users.with id: -> { name } to help generate uniqueness.
Use Postgres' template database to help seeding
Being able to share scenarios in a gem (though generally not recommended) and pass in an extra gem directory to Oaken::Data.load_from
Loosely quoting one of the callers: db:seed as the minimal data an app needs to boot, dev data for verification or review, test data is meant to be ephemeral, probably overlap between test and dev data
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I spoke with some people today who may be interested in using Oaken, and these ideas came up:
test/seeds/accounts/business/<traits_files>.rb
to set up something akin to FactoryBot's traits, could also be done via helper methods aladef accounts.with_stripe_account
.users.with id: -> { name }
to help generate uniqueness.Oaken::Data.load_from
db:seed
as the minimal data an app needs to boot, dev data for verification or review, test data is meant to be ephemeral, probably overlap between test and dev dataBeta Was this translation helpful? Give feedback.
All reactions