TIL, 2017-03-26, Before All is Done
- Instead of
expect_any_instance_of
, just do a dynamic dispatch. before_all
–if using this, you need to do your own teardown in anafter_all
. referencedatabase_cleaner
transaction vs. truncationrake db:reset
can help in intermittent failing tests, maybe it just wasn’t cleaned.- NO TO delimited list in a database column: reference
- When making seeders/seeder files, CSV is just easier for clients to use.