Today I Learned

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 after_all. reference
  • database_cleaner transaction vs. truncation
  • rake 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.

This project is maintained by daryllxd