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 an
database_cleanertransaction vs. truncation
rake db:resetcan 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.
Testing the new blog post generator: again, testing values works, I tested the value (the string that will become the...